Fixed glStencilMask setting.

This commit is contained in:
Robert Osfield
2009-05-27 12:11:41 +00:00
parent 45ec1a163c
commit b7db15bdad

View File

@@ -1237,7 +1237,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 );
}