fix no error generated when calling glLight{if}[v] inside begin/end (bug 17408)

This commit is contained in:
Roland Scheidegger 2008-09-02 15:48:50 +02:00
parent 55270310c5
commit 418b603513

View 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 );