summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-07-01 14:00:23 +1000
committerTimothy Arceri <[email protected]>2016-07-05 20:18:05 +1000
commit25a32c2cbffcb9c64e154b8088adf96c293e3ca0 (patch)
treecf5395da8355057e959dd1e30b0849011f2eb94a /src/mesa
parent8f1ca0ee3ff9e192540325ae42df9577b1ccdf7f (diff)
mesa: make attribute binding message more useful
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/shader_query.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp
index b5e1a44417f..a2a93b16d4e 100644
--- a/src/mesa/main/shader_query.cpp
+++ b/src/mesa/main/shader_query.cpp
@@ -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;
}