[osg-users] OpenGL.org says ... OSG does...

Schmidt, Richard, SDGE1 Richard.Schmidt at eads.com
Mon Oct 15 07:15:16 PDT 2007


Call glColorMaterial before enabling GL_COLOR_MATERIAL.

 

http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/
colormaterial.html

 

osg:

 

 

void Material::apply(State&) const

{

...

        glEnable(GL_COLOR_MATERIAL);

        glColorMaterial(GL_FRONT_AND_BACK,(GLenum)_colorMode);

...

}

 

Any ideas?

 

Richard

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071015/b1d297fe/attachment-0002.htm>


More information about the osg-users mailing list