Fixed bug in FBO colour attachement code

This commit is contained in:
Robert Osfield
2008-04-18 14:33:14 +00:00
parent 651c93e6c7
commit 55c6348cba

View File

@@ -344,7 +344,7 @@ void RenderStage::runCameraSetUp(osg::RenderInfo& renderInfo)
if (buffer==osg::Camera::DEPTH_BUFFER) depthAttached = true;
else if (buffer==osg::Camera::STENCIL_BUFFER) stencilAttached = true;
else if (buffer>osg::Camera::COLOR_BUFFER) colorAttached = true;
else if (buffer>=osg::Camera::COLOR_BUFFER) colorAttached = true;
}
if (!depthAttached)