mesa: make attribute binding message more useful
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
8f1ca0ee3f
commit
25a32c2cbf
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue