EMI: Disable texturing on texture-less faces.

This commit is contained in:
Einar Johan Trøan Sømåen 2012-11-14 20:57:18 +01:00
parent 21113597fa
commit dbceb00cf0

View File

@ -518,7 +518,10 @@ void GfxOpenGL::drawEMIModelFace(const EMIModel* model, const EMIMeshFace* face)
glEnable(GL_DEPTH_TEST);
glDisable(GL_ALPHA_TEST);
glDisable(GL_LIGHTING);
glEnable(GL_TEXTURE_2D);
if (face->_hasTexture)
glEnable(GL_TEXTURE_2D);
else
glDisable(GL_TEXTURE_2D);
glBegin(GL_TRIANGLES);
for (uint j = 0; j < face->_faceLength * 3; j++) {