mesa: minor error msg improvement
authorBrian Paul <brianp@vmware.com>
Tue, 3 Feb 2009 23:33:12 +0000 (16:33 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 4 Feb 2009 23:33:25 +0000 (16:33 -0700)
src/mesa/main/teximage.c

index d119d22b5468a9d67be3e135dd0c325414864e93..9519d89e4a09c17a56d79dfd7c48cbb445f80ae0 100644 (file)
@@ -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;
    }