mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 16:50:13 +01:00
mesa: print target string in glBindTexture() error message
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
9bfecb03c5
commit
8a7e3693c8
1 changed files with 2 additions and 1 deletions
|
|
@ -1663,7 +1663,8 @@ _mesa_BindTexture( GLenum target, GLuint texName )
|
|||
|
||||
targetIndex = _mesa_tex_target_to_index(ctx, target);
|
||||
if (targetIndex < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glBindTexture(target)");
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glBindTexture(target = %s)",
|
||||
_mesa_enum_to_string(target));
|
||||
return;
|
||||
}
|
||||
assert(targetIndex < NUM_TEXTURE_TARGETS);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue