From 3fc5b0fdc9f48579f901e775e7c0c169088adec8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 29 Sep 2002 17:55:46 +0000 Subject: [PATCH] From Macro, added a setActiveTextureUnit(0) to osg::Text::drawImmediateMode() to prevent the wrong OpenGL mode being used. --- src/osgText/Text.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index 4ec4f3e52..5e1ef1c9b 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -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)