Fixed glStencilMask setting.

This commit is contained in:
Robert Osfield
2009-05-27 12:11:58 +00:00
parent 9d8c98395e
commit bbc8e7b58c

View File

@@ -1230,7 +1230,7 @@ void RenderStage::drawImplementation(osg::RenderInfo& renderInfo,RenderLeaf*& pr
if (_clearMask & GL_STENCIL_BUFFER_BIT)
{
glClearStencil( _clearStencil);
glStencilMask ( GL_TRUE );
glStencilMask ( ~0u );
state.haveAppliedAttribute( osg::StateAttribute::STENCIL );
}