From f16a78ad970b9f9538799fbb7fd744862badeb50 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 17 Jul 2006 10:25:01 +0000 Subject: [PATCH] Increased the unit multiplier to 3 to avoid z fighting. --- 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 17a018389..c8b8033fa 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -1494,7 +1494,7 @@ void Text::drawImplementation(osg::State& state) const { state.setVertexPointer( 3, GL_FLOAT, 0, &(transformedBackdropCoords.front())); glPolygonOffset(2.0f * osg::PolygonOffset::getFactorMultiplier(), - 2.0f * osg::PolygonOffset::getUnitMultiplier() * (max_backdrop_index-backdrop_index) ); + 3.0f * osg::PolygonOffset::getUnitMultiplier() * (max_backdrop_index-backdrop_index) ); glDrawArrays(GL_QUADS,0,transformedBackdropCoords.size()); } }