Changeset 10601 for OpenSceneGraph/trunk/include/osg/State
- Timestamp:
- 10/03/09 11:25:23 (4 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/State (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/State
r10600 r10601 412 412 if (vbo == _currentVBO) return; 413 413 if (vbo->isDirty()) vbo->compileBuffer(); 414 else _glBindBuffer(GL_ARRAY_BUFFER_ARB,vbo->getGLObjectID());414 else vbo->bindBuffer(); 415 415 _currentVBO = vbo; 416 416 } … … 430 430 if (ebo == _currentEBO) return; 431 431 if (ebo->isDirty()) ebo->compileBuffer(); 432 else _glBindBuffer(GL_ELEMENT_ARRAY_BUFFER_ARB,ebo->getGLObjectID());432 else ebo->bindBuffer(); 433 433 _currentEBO = ebo; 434 434 } … … 449 449 450 450 if (pbo->isDirty()) pbo->compileBuffer(); 451 else _glBindBuffer(GL_PIXEL_UNPACK_BUFFER_ARB,pbo->getGLObjectID());451 else pbo->bindBuffer(); 452 452 453 453 _currentPBO = pbo; … … 1041 1041 unsigned int getMaxTexturePoolSize() const { return _maxTexturePoolSize; } 1042 1042 1043 void setMaxVBOPoolSize(unsigned int size); 1044 unsigned int getMaxVBOPoolSize() const { return _maxVBOPoolSize; } 1045 1046 void setMaxFBOPoolSize(unsigned int size); 1047 unsigned int getMaxFBOPoolSize() const { return _maxFBOPoolSize; } 1048 1043 void setMaxBufferObjectPoolSize(unsigned int size); 1044 unsigned int getMaxBufferObjectPoolSize() const { return _maxBufferObjectPoolSize; } 1049 1045 1050 1046 … … 1234 1230 1235 1231 unsigned int _maxTexturePoolSize; 1236 unsigned int _maxVBOPoolSize; 1237 unsigned int _maxFBOPoolSize; 1232 unsigned int _maxBufferObjectPoolSize; 1238 1233 1239 1234
