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

Paul Martz pmartz at skew-matrix.com
Mon Oct 15 09:01:49 PDT 2007


(Maybe I missed a discussion leading up to this post...?)
 
Interesting. I wonder why the OpenGL man pages recommend this without any
qualification. Certainly the order is not a strict OpenGL requirement. I
don't think it would be a performance issue either. Weird.
 
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com <http://www.skew-matrix.com/> 
303 859 9466
 

 

  _____  

From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Schmidt,
Richard, SDGE1
Sent: Monday, October 15, 2007 8:15 AM
To: osg-users at lists.openscenegraph.org
Subject: [osg-users] OpenGL.org says ... OSG does...


Call glColorMaterial before enabling GL_COLOR_MATERIAL.

 

http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/colo
rmaterial.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/a1166826/attachment-0003.htm>


More information about the osg-users mailing list