From Macro, added a setActiveTextureUnit(0) to osg::Text::drawImmediateMode() to
prevent the wrong OpenGL mode being used.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user