From ae1f09babb9c127d573050f4338b6f3d55cba377 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 13 Nov 2012 13:05:03 -0800 Subject: mesa: return INVALID_VALUE from VertexAttribDivisor if index out of range All the other range checks on index already return the proper error, INVALID_VALUE. Fixes gles3conform's instanced_arrays_invalid test. Reviewed-by: Paul Berry Reviewed-by: Kenneth Graunke --- src/mesa/main/varray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa') diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 7a5a5c5debc..f770143972c 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -1137,7 +1137,7 @@ _mesa_VertexAttribDivisor(GLuint index, GLuint divisor) } if (index >= ctx->Const.VertexProgram.MaxAttribs) { - _mesa_error(ctx, GL_INVALID_ENUM, "glVertexAttribDivisor(index = %u)", + _mesa_error(ctx, GL_INVALID_VALUE, "glVertexAttribDivisor(index = %u)", index); return; } -- cgit v1.2.3