From Wojciech Lewandowski, part of the FBO attachment submission

This commit is contained in:
Robert Osfield 2009-08-21 09:43:41 +00:00
parent 613c59ad3b
commit e8eeaa0c8b

View File

@ -273,8 +273,8 @@ void ShadowVolume::cull(osgUtil::CullVisitor& cv)
new_rs->setViewport(orig_rs->getViewport());
new_rs->setClearColor(orig_rs->getClearColor());
new_rs->setClearMask(GL_STENCIL_BUFFER_BIT);
new_rs->setDrawBuffer(orig_rs->getDrawBuffer());
new_rs->setReadBuffer(orig_rs->getReadBuffer());
new_rs->setDrawBuffer(orig_rs->getDrawBuffer(), orig_rs->getDrawBufferApplyMask());
new_rs->setReadBuffer(orig_rs->getReadBuffer(), orig_rs->getReadBufferApplyMask());
new_rs->setColorMask(orig_rs->getColorMask());
osg::Vec4 lightpos;