From: Matt Turner Date: Tue, 13 Nov 2012 21:05:03 +0000 (-0800) Subject: mesa: return INVALID_VALUE from VertexAttribDivisor if index out of range X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae1f09babb9c127d573050f4338b6f3d55cba377;p=mesa.git 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 --- 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; }