mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 20:50:31 +01:00
mesa: more info in glActiveTexture error msg
This commit is contained in:
parent
f103f7e460
commit
4e5364d6fc
1 changed files with 2 additions and 1 deletions
|
|
@ -291,7 +291,8 @@ _mesa_ActiveTextureARB(GLenum texture)
|
|||
_mesa_lookup_enum_by_nr(texture));
|
||||
|
||||
if (texUnit >= ctx->Const.MaxTextureImageUnits) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glActiveTexture(texture)");
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glActiveTexture(texture=%s)",
|
||||
_mesa_lookup_enum_by_nr(texture));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue