Added check against State::useVertexBufferObjects(..) so that Display Lists are only used when VBO is OFF.

This commit is contained in:
Robert Osfield
2016-08-15 18:17:35 +01:00
parent 961bffcca4
commit 359b136b5e
4 changed files with 7 additions and 5 deletions

View File

@@ -181,6 +181,9 @@ void State::initializeExtensionProcs()
_forceVertexArrayObject = _isVertexArrayObjectSupported && (ds->getVertexBufferHint()==DisplaySettings::VERTEX_ARRAY_OBJECT);
_forceVertexBufferObject = _forceVertexArrayObject || (_isVertexBufferObjectSupported && (ds->getVertexBufferHint()==DisplaySettings::VERTEX_BUFFER_OBJECT));
OSG_NOTICE<<"_forceVertexArrayObject = "<<_forceVertexArrayObject<<std::endl;
OSG_NOTICE<<"_forceVertexBufferObject = "<<_forceVertexBufferObject<<std::endl;
// Set up up global VertexArrayState object
_globalVertexArrayState = new VertexArrayState(this);