From: Timothy Arceri Date: Fri, 1 Jul 2016 04:00:23 +0000 (+1000) Subject: mesa: make attribute binding message more useful X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25a32c2cbffcb9c64e154b8088adf96c293e3ca0;p=mesa.git mesa: make attribute binding message more useful Reviewed-by: Iago Toral Quiroga --- 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; }