There is no GLenum called LIGHT_POSITION
authorJason Wilkins <Jason.A.Wilkins@gmail.com>
Fri, 4 May 2012 07:23:50 +0000 (07:23 +0000)
committerJason Wilkins <Jason.A.Wilkins@gmail.com>
Fri, 4 May 2012 07:23:50 +0000 (07:23 +0000)
There is an FAQ that mentions a mythical GL_LIGHT_POSITION, and lots of programmers speak of it, but this mythical creature does not exist!

The correct symbol is GL_POSITION

source/blender/editors/space_view3d/drawmesh.c

index 524b66c852c3ea5584ab2cd0fe0c879bd31baaec..530b26d566a2492e3aa8df7a7bd7a08ab5a893b8 100644 (file)
@@ -387,7 +387,7 @@ static void draw_textured_end(void)
        glDisable(GL_CULL_FACE);
 
        /* XXX, bad patch - GPU_default_lights() calls
        glDisable(GL_CULL_FACE);
 
        /* XXX, bad patch - GPU_default_lights() calls
-        * glLightfv(GL_LIGHT_POSITION, ...) which
+        * glLightfv(GL_POSITION, ...) which
         * is transformed by the current matrix... we
         * need to make sure that matrix is identity.
         * 
         * is transformed by the current matrix... we
         * need to make sure that matrix is identity.
         *