From Sherman Wilcox, "Minor change to the glPushAttrib(...) call in

renderWithStencilBuffer(...)  - added GL_STENCIL_BUFFER_BIT"
This commit is contained in:
Robert Osfield
2009-01-21 14:37:36 +00:00
parent a6284b0e03
commit 39fc490a64

View File

@@ -1942,7 +1942,7 @@ void Text::renderWithStencilBuffer(osg::State& state, const osg::Vec4& colorMult
unsigned int contextID = state.getContextID();
TextureGlyphQuadMap::iterator titr; // Moved up here for VC6
glPushAttrib(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_TEST);
glPushAttrib(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT | GL_STENCIL_TEST);
// It seems I can get away without calling this here
//glClear(GL_STENCIL_BUFFER_BIT);