From Macro, added a setActiveTextureUnit(0) to osg::Text::drawImmediateMode() to

prevent the wrong OpenGL mode being used.
This commit is contained in:
Robert Osfield
2002-09-29 17:55:46 +00:00
parent d176f752a5
commit 3fc5b0fdc9

View File

@@ -185,6 +185,7 @@ void Text::drawImmediateMode(State& state)
// we must disable all the vertex arrays to prevent any state
// propagating into text.
state.disableAllVertexArrays();
state.setActiveTextureUnit(0);
// draw boundingBox
if(_drawMode & BOUNDINGBOX)