summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2007-06-21 20:08:02 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2007-06-21 20:08:02 +0200
commit1f48d63f7e411ad3478f22d937dc1a344d04b0e3 (patch)
treed42815086e4926dcdf27df85d5c1f18eac38cf00
parent013e77ca536df183f40405c0ce2c0a51642a95d3 (diff)
downloadgears-1f48d63f7e411ad3478f22d937dc1a344d04b0e3.tar.gz
gears-1f48d63f7e411ad3478f22d937dc1a344d04b0e3.tar.bz2
Fixed lighting.
-rw-r--r--dummy0
-rw-r--r--gears.c4
2 files changed, 3 insertions, 1 deletions
diff --git a/dummy b/dummy
deleted file mode 100644
index e69de29..0000000
--- a/dummy
+++ /dev/null
diff --git a/gears.c b/gears.c
index c21af1d..0b69fe0 100644
--- a/gears.c
+++ b/gears.c
@@ -314,7 +314,9 @@ static void gearsPaintInside (CompScreen *s, const ScreenPaintAttrib *sAttrib,
glDisable(GL_LIGHT1);
glDisable(GL_NORMALIZE);
glEnable(GL_COLOR_MATERIAL);
- glDisable(GL_LIGHTING);
+
+ if (!s->lighting)
+ glDisable(GL_LIGHTING);
glDisable(GL_DEPTH_TEST);