Increased the unit multiplier to 3 to avoid z fighting.

This commit is contained in:
Robert Osfield
2006-07-17 10:25:01 +00:00
parent e8235f6967
commit f16a78ad97

View File

@@ -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());
}
}