From: Roland Scheidegger Date: Tue, 2 Sep 2008 13:48:50 +0000 (+0200) Subject: fix no error generated when calling glLight{if}[v] inside begin/end (bug 17408) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=418b6035133e4e10bdc46fe39af192afd087dd69;p=mesa.git fix no error generated when calling glLight{if}[v] inside begin/end (bug 17408) --- 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 );