mesa: make attribute binding message more useful
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 1 Jul 2016 04:00:23 +0000 (14:00 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 5 Jul 2016 10:18:05 +0000 (20:18 +1000)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/main/shader_query.cpp

index b5e1a44417fdb729162d963045d200518c98c1f3..a2a93b16d4ef58f253f77c9fd246efde11fc800b 100644 (file)
@@ -84,7 +84,8 @@ _mesa_BindAttribLocation(GLuint program, GLuint index,
    }
 
    if (index >= ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs) {
-      _mesa_error(ctx, GL_INVALID_VALUE, "glBindAttribLocation(index)");
+      _mesa_error(ctx, GL_INVALID_VALUE, "glBindAttribLocation(%u >= %u)",
+                  index, ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs);
       return;
    }