From Colin MacDonald, fixed handling of an adding a graphics context after the creating of the osgText::Text.
This commit is contained in:
@@ -905,6 +905,19 @@ void Text::drawImplementation(osg::State& state) const
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Ensure that the glyph coordinates have been transformed for
|
||||
// this context id.
|
||||
|
||||
if ( !_textureGlyphQuadMap.empty() )
|
||||
{
|
||||
const GlyphQuads& glyphquad = (_textureGlyphQuadMap.begin())->second;
|
||||
if ( glyphquad._transformedCoords[contextID].empty() )
|
||||
{
|
||||
computePositions(contextID);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
glNormal3fv(_normal.ptr());
|
||||
|
||||
Reference in New Issue
Block a user