summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@tungstengraphics.com>2008-09-02 15:48:50 +0200
committerRoland Scheidegger <sroland@tungstengraphics.com>2008-09-02 15:49:35 +0200
commit14d186644be77d046942db1fb0074a6e86d701b3 (patch)
tree1cb8e5c0082d60bb0059f72b8401a676688e61a1
parente4535e4d5e37965f5a19b2166d3933ee9d72c27b (diff)
downloadmesa-14d186644be77d046942db1fb0074a6e86d701b3.tar.gz
fix no error generated when calling glLight{if}[v] inside begin/end (bug 17408)
-rw-r--r--src/mesa/main/light.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index 6dd334e16dc..94625b9f916 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -184,6 +184,7 @@ _mesa_Lightfv( GLenum light, GLenum pname, const GLfloat *params )
GET_CURRENT_CONTEXT(ctx);
GLint i = (GLint) (light - GL_LIGHT0);
GLfloat temp[4];
+ ASSERT_OUTSIDE_BEGIN_END(ctx);
if (i < 0 || i >= (GLint) ctx->Const.MaxLights) {
_mesa_error( ctx, GL_INVALID_ENUM, "glLight(light=0x%x)", light );