Show
Ignore:
Timestamp:
12/07/09 17:45:33 (4 years ago)
Author:
robert
Message:

Re-order the setting of the VBO's

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgUtil/GLObjectsVisitor.cpp

    r10297 r10859  
    8080    } 
    8181 
     82    if (_mode&SWITCH_ON_VERTEX_BUFFER_OBJECTS) 
     83    { 
     84        drawable.setUseVertexBufferObjects(true); 
     85    } 
     86 
     87    if (_mode&SWITCH_OFF_VERTEX_BUFFER_OBJECTS) 
     88    { 
     89        drawable.setUseVertexBufferObjects(false); 
     90    } 
     91 
    8292    if (_mode&COMPILE_DISPLAY_LISTS && _renderInfo.getState()) 
    8393    { 
     
    8898    { 
    8999        drawable.releaseGLObjects(_renderInfo.getState()); 
    90     } 
    91  
    92     if (_mode&SWITCH_ON_VERTEX_BUFFER_OBJECTS) 
    93     { 
    94         drawable.setUseVertexBufferObjects(true); 
    95     } 
    96  
    97     if (_mode&SWITCH_OFF_VERTEX_BUFFER_OBJECTS) 
    98     { 
    99         drawable.setUseVertexBufferObjects(false); 
    100100    } 
    101101}