Mesa (master): mesa: fix error message strings

Brian Paul brianp at kemper.freedesktop.org
Wed May 12 03:44:46 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue May 11 21:13:21 2010 -0600

mesa: fix error message strings

---

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

diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 0b55097..ff75215 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -1281,7 +1281,7 @@ texture_error_check( GLcontext *ctx, GLenum target,
           type != GL_UNSIGNED_SHORT_8_8_REV_MESA) {
          char message[100];
          _mesa_snprintf(message, sizeof(message),
-                        "glTexImage%d(format/type YCBCR mismatch", dimensions);
+                        "glTexImage%dD(format/type YCBCR mismatch", dimensions);
          _mesa_error(ctx, GL_INVALID_ENUM, message);
          return GL_TRUE; /* error */
       }
@@ -1297,7 +1297,7 @@ texture_error_check( GLcontext *ctx, GLenum target,
          if (!isProxy) {
             char message[100];
             _mesa_snprintf(message, sizeof(message),
-                           "glTexImage%d(format=GL_YCBCR_MESA and border=%d)",
+                           "glTexImage%dD(format=GL_YCBCR_MESA and border=%d)",
                            dimensions, border);
             _mesa_error(ctx, GL_INVALID_VALUE, message);
          }
@@ -1325,7 +1325,7 @@ texture_error_check( GLcontext *ctx, GLenum target,
    if (_mesa_is_compressed_format(ctx, internalFormat)) {
       if (!target_can_be_compressed(ctx, target) && !isProxy) {
          _mesa_error(ctx, GL_INVALID_ENUM,
-                     "glTexImage%d(target)", dimensions);
+                     "glTexImage%dD(target)", dimensions);
          return GL_TRUE;
       }
       if (border != 0) {
@@ -1691,7 +1691,7 @@ copytexture_error_check( GLcontext *ctx, GLuint dimensions,
    if (_mesa_is_compressed_format(ctx, internalFormat)) {
       if (!target_can_be_compressed(ctx, target)) {
          _mesa_error(ctx, GL_INVALID_ENUM,
-                     "glCopyTexImage%d(target)", dimensions);
+                     "glCopyTexImage%dD(target)", dimensions);
          return GL_TRUE;
       }
       if (border != 0) {
@@ -1877,7 +1877,7 @@ copytexsubimage_error_check2( GLcontext *ctx, GLuint dimensions,
    if (_mesa_is_format_compressed(teximage->TexFormat)) {
       if (!target_can_be_compressed(ctx, target)) {
          _mesa_error(ctx, GL_INVALID_ENUM,
-                     "glCopyTexSubImage%d(target)", dimensions);
+                     "glCopyTexSubImage%dD(target)", dimensions);
          return GL_TRUE;
       }
       /* offset must be multiple of 4 */




More information about the mesa-commit mailing list