From 418b6035133e4e10bdc46fe39af192afd087dd69 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Tue, 2 Sep 2008 15:48:50 +0200 Subject: [PATCH] fix no error generated when calling glLight{if}[v] inside begin/end (bug 17408) --- src/mesa/main/light.c | 1 + 1 file changed, 1 insertion(+) 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 ); -- 2.30.2