Ignore:
Timestamp:
Jun 17, 2015, 5:14:44 AM (4 years ago)
Author:
ldelgass
Message:

Downsample volume if dims exceed hardware limits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nanovis/trunk/nanovis.cpp

    r5716 r5717  
    7777Camera *NanoVis::_camera = NULL;
    7878RenderContext *NanoVis::renderContext = NULL;
     79GLint NanoVis::max3dTextureSize = 2048;
    7980
    8081NanoVis::TransferFunctionHashmap NanoVis::tfTable;
     
    539540    _camera = new Camera(0, 0, winWidth, winHeight);
    540541
     542    glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE, &max3dTextureSize);
     543    TRACE("Max 3D texture dim: %d", max3dTextureSize);
     544
    541545    glEnable(GL_TEXTURE_2D);
    542546    glShadeModel(GL_FLAT);
Note: See TracChangeset for help on using the changeset viewer.