From 39fc490a6435bc3f26d292d797ecd9a3b128288c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 21 Jan 2009 14:37:36 +0000 Subject: [PATCH] From Sherman Wilcox, "Minor change to the glPushAttrib(...) call in renderWithStencilBuffer(...) - added GL_STENCIL_BUFFER_BIT" --- src/osgText/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index a50120a83..84c240f77 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -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);