[Mesa-dev] [PATCH] mesa: make attribute binding message more useful
Timothy Arceri
timothy.arceri at collabora.com
Fri Jul 1 04:00:23 UTC 2016
---
src/mesa/main/shader_query.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp
index b5e1a44..a2a93b1 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;
}
--
2.7.4
More information about the mesa-dev
mailing list