Removed debugging code

This commit is contained in:
Robert Osfield
2016-06-02 15:23:38 +01:00
parent f16b805e0d
commit 9eb9186200

View File

@@ -957,6 +957,7 @@ void SharedGeometry::drawImplementation(osg::RenderInfo& renderInfo) const
GLenum primitiveType = computeDiagonals ? GL_LINES_ADJACENCY : GL_QUADS;
osg::GLBufferObject* ebo = _drawElements->getOrCreateGLBufferObject(state.getContextID());
state.bindElementBufferObject(ebo);
glDrawElements(primitiveType, _drawElements->getNumIndices(), _drawElements->getDataType(), (const GLvoid *)(ebo->getOffset(_drawElements->getBufferIndex())));
@@ -966,19 +967,6 @@ void SharedGeometry::drawImplementation(osg::RenderInfo& renderInfo) const
state.unbindVertexBufferObject();
state.unbindElementBufferObject();
#if 0
if (computeDiagonals)
{
if (state.checkGLErrors("End of SharedGeometry::drawImplementation. computeDiagonals=TRUE")) {}
else OSG_NOTICE<<"SharedGeometry::drawImplementation. OK computeDiagonals=TRUE"<<std::endl;
}
else
{
if (state.checkGLErrors("End of SharedGeometry::drawImplementation. computeDiagonals=FALSE")) {}
else OSG_NOTICE<<"SharedGeometry::drawImplementation. OK computeDiagonals=FALSE"<<std::endl;
}
#endif
if (checkForGLErrors) state.checkGLErrors("end of SharedGeometry::drawImplementation().");
}