diff options
author | Timothy Arceri <[email protected]> | 2016-07-01 14:00:23 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-07-05 20:18:05 +1000 |
commit | 25a32c2cbffcb9c64e154b8088adf96c293e3ca0 (patch) | |
tree | cf5395da8355057e959dd1e30b0849011f2eb94a /src/mesa/main/shader_query.cpp | |
parent | 8f1ca0ee3ff9e192540325ae42df9577b1ccdf7f (diff) |
mesa: make attribute binding message more useful
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/mesa/main/shader_query.cpp')
-rw-r--r-- | src/mesa/main/shader_query.cpp | 3 |
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; } |