GRIM: Don't enable lighting if we're drawing the shadow. Fix #294

This commit is contained in:
Giulio Camuffo 2013-01-12 14:20:51 +01:00
parent 0fe1735578
commit e3c85997a2

View File

@ -653,7 +653,9 @@ void GfxOpenGL::translateViewpointFinish() {
}
void GfxOpenGL::enableLights() {
glEnable(GL_LIGHTING);
if (!isShadowModeActive()) {
glEnable(GL_LIGHTING);
}
}
void GfxOpenGL::disableLights() {