summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-09-22 09:30:24 -0600
committerBrian Paul <[email protected]>2012-09-26 07:43:49 -0600
commitb52e05cecb3650f875bd27c27bef529f35faea0a (patch)
treec0f46f0c6e2a7bc0a07c46bb04c034291fc1d06d
parentd3aa6a5c564a955be6b9af1c58fe1359879b2805 (diff)
mesa: minor fix to glTexSubImage error message
-rw-r--r--src/mesa/main/teximage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 501d33d747a..e4bee287f0a 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;
}