fix [#26600] TexturedSolid + Curve: Specular affecting other materials

This commit is contained in:
Campbell Barton 2011-03-25 13:37:50 +00:00
parent f08a227f93
commit 21e0eff897

@ -328,6 +328,7 @@ static int set_draw_settings_cached(int clearcache, int textured, MTFace *texfac
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, spec);
glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
glMateriali(GL_FRONT_AND_BACK, GL_SHININESS, CLAMPIS(ma->har, 0, 128));
glEnable(GL_LIGHTING);
glEnable(GL_COLOR_MATERIAL);
}