From Richard Schmidt, fix on ordering to be standard OpenGL way.

This commit is contained in:
Robert Osfield 2007-12-10 20:33:22 +00:00
parent c5704586f9
commit c43606e3fe

View File

@ -358,8 +358,8 @@ void Material::apply(State&) const
}
else
{
glEnable(GL_COLOR_MATERIAL);
glColorMaterial(GL_FRONT_AND_BACK,(GLenum)_colorMode);
glEnable(GL_COLOR_MATERIAL);
switch(_colorMode)
{
case(AMBIENT): glColor4fv(_ambientFront.ptr()); break;