Updated to reflect new COLOR_BUFFER0 value

This commit is contained in:
Robert Osfield
2008-04-02 13:55:50 +00:00
parent fb5c839b31
commit f5c9b548a8

View File

@@ -353,6 +353,12 @@ void RenderStage::runCameraSetUp(osg::RenderInfo& renderInfo)
stencilAttached = true;
break;
}
case(osg::Camera::COLOR_BUFFER):
{
fbo->setAttachment(GL_COLOR_ATTACHMENT0_EXT, osg::FrameBufferAttachment(attachment));
colorAttached = true;
break;
}
default:
{
fbo->setAttachment(GL_COLOR_ATTACHMENT0_EXT+(buffer-osg::Camera::COLOR_BUFFER0), osg::FrameBufferAttachment(attachment));