summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/egl/opengles1/torus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/egl/opengles1/torus.c b/src/egl/opengles1/torus.c
index 8f262b53..ccf53d19 100644
--- a/src/egl/opengles1/torus.c
+++ b/src/egl/opengles1/torus.c
@@ -358,6 +358,11 @@ init(void)
make_texture();
glEnable(GL_TEXTURE_2D);
+
+ /* Enable automatic normalizing to get proper lighting when torus is
+ * scaled down via glScalef
+ */
+ glEnable(GL_NORMALIZE);
}