summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-12-19 22:41:19 +0900
committerJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-12-19 22:41:19 +0900
commit17d73be65daf43c214f00002ddb549e768ca2d09 (patch)
tree6ed5743dd3ec74807e218541d370c94ab67e6b32
parent609ce9b912ee9d871807eda33caa666747f25957 (diff)
downloadcubedbus-17d73be65daf43c214f00002ddb549e768ca2d09.tar.gz
cubedbus-17d73be65daf43c214f00002ddb549e768ca2d09.tar.bz2
Fixed lighting bug, when loading certain models
-rw-r--r--cubedbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cubedbus.c b/cubedbus.c
index b3b4f00..776ea4d 100644
--- a/cubedbus.c
+++ b/cubedbus.c
@@ -363,7 +363,7 @@ cubedbusPaintInside (CompScreen *s,
glTranslatef (cs->outputXOffset, -cs->outputYOffset, 0.0f); /* OpenGL stuff to set correct transformation due to cube rotation? */
glScalef (cs->outputXScale, cs->outputYScale, 1.0f);
- glPushAttrib (GL_COLOR_BUFFER_BIT | GL_TEXTURE_BIT);
+ glPushAttrib (GL_COLOR_BUFFER_BIT | GL_TEXTURE_BIT | GL_LIGHTING_BIT);
enabled = glIsEnabled (GL_CULL_FACE);