summaryrefslogtreecommitdiff
path: root/src
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:48:50 +0200
commit418b6035133e4e10bdc46fe39af192afd087dd69 (patch)
tree7b94c9295b69a081e9a59a905404bde6cc953d3e /src
parent55270310c5040a0821fef3cfb3b620dc6c0320a9 (diff)
fix no error generated when calling glLight{if}[v] inside begin/end (bug 17408)
Diffstat (limited to 'src')
-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 6dd334e16d..94625b9f91 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 );