[Mesa-dev] [PATCH 6/6] mesa: minor fix to glTexSubImage error message
Brian Paul
brian.e.paul at gmail.com
Sat Sep 22 08:35:07 PDT 2012
From: Brian Paul <brianp at vmware.com>
---
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 f298ba5..fdd6129 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -2204,7 +2204,8 @@ texsubimage_error_check(struct gl_context *ctx, GLuint dimensions,
/* level check */
if (level < 0 || level >= _mesa_max_texture_levels(ctx, target)) {
- _mesa_error(ctx, GL_INVALID_ENUM, "glTexSubImage2D(level=%d)", level);
+ _mesa_error(ctx, GL_INVALID_ENUM, "glTexSubImage%uD(level=%d)",
+ dimensions, level);
return GL_TRUE;
}
--
1.7.4.1
More information about the mesa-dev
mailing list