projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bfecb0
)
mesa: print target string in glBindTexture() error message
author
Brian Paul
<brianp@vmware.com>
Fri, 14 Apr 2017 18:42:40 +0000
(12:42 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 20 Apr 2017 01:57:32 +0000
(19:57 -0600)
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/texobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texobj.c
b/src/mesa/main/texobj.c
index ad644ca1ca3acf04811557113910cf463f491462..00feb975522df00b514e87f5a8bbb29242397a5e 100644
(file)
--- a/
src/mesa/main/texobj.c
+++ b/
src/mesa/main/texobj.c
@@
-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);