Mesa (master): mesa: minor error msg improvement

Brian Paul brianp at kemper.freedesktop.org
Wed Feb 4 23:34:29 UTC 2009


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Feb  3 16:33:12 2009 -0700

mesa: minor error msg improvement

---

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

diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index d119d22..9519d89 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -2168,7 +2168,8 @@ copytexsubimage_error_check2( GLcontext *ctx, GLuint dimensions,
 
    if (!_mesa_source_buffer_exists(ctx, teximage->_BaseFormat)) {
       _mesa_error(ctx, GL_INVALID_OPERATION,
-               "glCopyTexSubImage%dD(missing readbuffer)", dimensions);
+                  "glCopyTexSubImage%dD(missing readbuffer, format=0x%x)",
+                  dimensions, teximage->_BaseFormat);
       return GL_TRUE;
    }
 




More information about the mesa-commit mailing list