On 13 November 2012 13:18, Matt Turner <span dir="ltr"><<a href="mailto:mattst88@gmail.com" target="_blank">mattst88@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
All the other range checks on index already return the proper error,<br>
INVALID_VALUE.<br>
<br>
Fixes gles3conform's instanced_arrays_invalid.<br></blockquote><div><br>Minor nit pick: it's not obvious from your commit subject whether it describes the state of the code before or after the change.  I'd recommend something like "mesa: return INVALID_VALUE from VertexAttribDivisor if index out of range".<br>
<br>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
 src/mesa/main/varray.c |    2 +-<br>
 1 files changed, 1 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c<br>
index 809b818..1ff77bc 100644<br>
--- a/src/mesa/main/varray.c<br>
+++ b/src/mesa/main/varray.c<br>
@@ -1138,7 +1138,7 @@ _mesa_VertexAttribDivisor(GLuint index, GLuint divisor)<br>
    }<br>
<br>
    if (index >= ctx->Const.VertexProgram.MaxAttribs) {<br>
-      _mesa_error(ctx, GL_INVALID_ENUM, "glVertexAttribDivisor(index = %u)",<br>
+      _mesa_error(ctx, GL_INVALID_VALUE, "glVertexAttribDivisor(index = %u)",<br>
                   index);<br>
       return;<br>
    }<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.8.6<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>