Fixed copy and paste error

This commit is contained in:
Robert Osfield 2017-11-02 11:51:03 +00:00
parent 1bf2db24f2
commit 281aae8eea

View File

@ -846,7 +846,7 @@ void SharedGeometry::compileGLObjects(osg::RenderInfo& renderInfo) const
osg::BufferObject* ebo = _drawElements->getElementBufferObject();
osg::GLBufferObject* ebo_glBufferObject = ebo->getOrCreateGLBufferObject(contextID);
if (ebo_glBufferObject && vbo_glBufferObject->isDirty())
if (ebo_glBufferObject && ebo_glBufferObject->isDirty())
{
// OSG_NOTICE<<"Compile buffer "<<glBufferObject<<std::endl;
ebo_glBufferObject->compileBuffer();