From: Brian Paul Date: Sat, 22 Sep 2012 15:30:24 +0000 (-0600) Subject: mesa: minor fix to glTexSubImage error message X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b52e05cecb3650f875bd27c27bef529f35faea0a;p=mesa.git mesa: minor fix to glTexSubImage error message --- 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; }