Module: Mesa
Branch: master
Commit: d31065cbf61f0a510c5563263820a8f0a1100ec7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d31065cbf61f0a510c5563263820a8f0a1100ec7

Author: Brian Paul <[email protected]>
Date:   Tue Dec  1 14:35:14 2015 -0700

mesa: print enum string in compressed_subtexture_error_check() error msg

Trivial.

---

 src/mesa/main/teximage.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 37dbe26..d5fe034 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -4303,8 +4303,8 @@ compressed_subtexture_error_check(struct gl_context *ctx, 
GLint dims,
 
    if ((GLint) format != texImage->InternalFormat) {
       _mesa_error(ctx, GL_INVALID_OPERATION,
-                  "%s(format=0x%x)",
-                  callerName, format);
+                  "%s(format=%s)",
+                  callerName, _mesa_enum_to_string(format));
       return GL_TRUE;
    }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to