diff --git a/src/osgUtil/RenderStage.cpp b/src/osgUtil/RenderStage.cpp index 885f2c62d..5142d8e53 100644 --- a/src/osgUtil/RenderStage.cpp +++ b/src/osgUtil/RenderStage.cpp @@ -205,9 +205,9 @@ void RenderStage::runCameraSetUp(osg::State& state) osg::notify(osg::INFO)<<"Setting up osg::CameraNode::FRAME_BUFFER_OBJECT"<readPixels(_viewport->x(), _viewport->y(), _viewport->width(), _viewport->height(), pixelFormat, dataType); + } @@ -550,8 +549,6 @@ void RenderStage::drawInner(osg::State& state,RenderLeaf*& previous, bool& doCop (*(_camera->getPostDrawCallback()))(*_camera); } - state.checkGLErrors("before glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);"); - if (fbo_supported) { // switch of the frame buffer object @@ -560,9 +557,6 @@ void RenderStage::drawInner(osg::State& state,RenderLeaf*& previous, bool& doCop doCopyTexture = true; } - state.checkGLErrors("after glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);"); - - if (fbo_supported && _camera) { // now generate mipmaps if they are required.