Hi robert,

When trying to use the osgText functionality in an osg application built 
without support for the fixed function pipeline I got a lot of warning messages 
about invalid calls. 
I found two indirect calls to the glTexEnv in the file Text.cpp:

state.applyTextureAttribute(0,getActiveFont()->getTexEnv());

In the attached fix I surrounded these calls with #ifdef's checking for 
OSG_GL_FIXED_FUNCTION_AVAILABLE to ensure that the above function is only 
called when the fixed function pipeline is available.

Cheers,
Johannes

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=34499#34499




Attachments: 
http://forum.openscenegraph.org//files/text_342.zip


_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to