Added support for CameraNode's PostDrawCallback.

This commit is contained in:
Robert Osfield
2006-08-31 10:08:05 +00:00
parent 5988668cff
commit dcf19c92fd

View File

@@ -1230,6 +1230,11 @@ void SceneView::draw()
// re apply the defalt OGL state.
_state->popAllStateSets();
_state->apply();
if (_camera->getPostDrawCallback())
{
(*(_camera->getPostDrawCallback()))(*_camera);
}
if (_state->getCheckForGLErrors()!=osg::State::NEVER_CHECK_GL_ERRORS)
{