[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46259] trunk/blender/source/blender/ editors/space_view3d/drawmesh.c: There is no GLenum called LIGHT_POSITION

Jason Wilkins Jason.A.Wilkins at gmail.com
Fri May 4 09:23:50 CEST 2012


Revision: 46259
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46259
Author:   jwilkins
Date:     2012-05-04 07:23:50 +0000 (Fri, 04 May 2012)
Log Message:
-----------
There is no GLenum called LIGHT_POSITION

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

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/drawmesh.c

Modified: trunk/blender/source/blender/editors/space_view3d/drawmesh.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/drawmesh.c	2012-05-04 07:22:25 UTC (rev 46258)
+++ trunk/blender/source/blender/editors/space_view3d/drawmesh.c	2012-05-04 07:23:50 UTC (rev 46259)
@@ -387,7 +387,7 @@
 	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.
 	 * 




More information about the Bf-blender-cvs mailing list