fix no error generated when calling glLight{if}[v] inside begin/end (bug 17408)
authorRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 2 Sep 2008 13:48:50 +0000 (15:48 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 2 Sep 2008 13:48:50 +0000 (15:48 +0200)
src/mesa/main/light.c

index 6dd334e..94625b9 100644 (file)
@@ -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 );