GRIM: Don't enable lighting if we're drawing the shadow. Fix #294
This commit is contained in:
parent
0fe1735578
commit
e3c85997a2
1 changed files with 3 additions and 1 deletions
|
@ -653,7 +653,9 @@ void GfxOpenGL::translateViewpointFinish() {
|
|||
}
|
||||
|
||||
void GfxOpenGL::enableLights() {
|
||||
glEnable(GL_LIGHTING);
|
||||
if (!isShadowModeActive()) {
|
||||
glEnable(GL_LIGHTING);
|
||||
}
|
||||
}
|
||||
|
||||
void GfxOpenGL::disableLights() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue