Tempory fix for regression due to remove of glPushAttrib/glPopAttrib
This commit is contained in:
parent
2aa231cd11
commit
270a9fc47e
@ -1597,6 +1597,7 @@ void Text::renderOnlyForegroundText(osg::State& state, const osg::Vec4& colorMul
|
||||
|
||||
void Text::renderWithDelayedDepthWrites(osg::State& state, const osg::Vec4& colorMultiplier) const
|
||||
{
|
||||
//glPushAttrib( _enableDepthWrites ? (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) : GL_DEPTH_BUFFER_BIT);
|
||||
// Render to color buffer without writing to depth buffer.
|
||||
glDepthMask(GL_FALSE);
|
||||
drawTextWithBackdrop(state,colorMultiplier);
|
||||
@ -1611,6 +1612,9 @@ void Text::renderWithDelayedDepthWrites(osg::State& state, const osg::Vec4& colo
|
||||
|
||||
state.haveAppliedAttribute(osg::StateAttribute::DEPTH);
|
||||
state.haveAppliedAttribute(osg::StateAttribute::COLORMASK);
|
||||
|
||||
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
|
||||
//glPopAttrib();
|
||||
}
|
||||
|
||||
void Text::drawTextWithBackdrop(osg::State& state, const osg::Vec4& colorMultiplier) const
|
||||
|
Loading…
Reference in New Issue
Block a user