Added state.checkGLErrors() calls to help in debugging of GLES 2 port

This commit is contained in:
Robert Osfield
2009-11-10 11:34:31 +00:00
parent 126f83e5b4
commit 5b236c685b

View File

@@ -272,17 +272,22 @@ void Renderer::compile()
{
DEBUG_MESSAGE<<"Renderer::compile()"<<std::endl;
_compileOnNextDraw = false;
osgUtil::SceneView* sceneView = _sceneView[0].get();
if (!sceneView || _done) return;
sceneView->getState()->checkGLErrors("Before Renderer::compile");
if (sceneView->getSceneData())
{
osgUtil::GLObjectsVisitor glov;
glov.setState(sceneView->getState());
sceneView->getSceneData()->accept(glov);
}
sceneView->getState()->checkGLErrors("After Renderer::compile");
}
void Renderer::cull()