mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 17:30:29 +01:00
fix no error generated when calling glLight{if}[v] inside begin/end (bug 17408)
This commit is contained in:
parent
55270310c5
commit
418b603513
1 changed files with 1 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue