summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-07-22 12:39:47 -0400
committerIlia Mirkin <[email protected]>2015-07-23 16:22:52 -0400
commitc844afe94eaecc66e00cc4869f700ac1236bdc89 (patch)
tree2bd9b4c8cd03528843c6ada83f8a13c91db1cce7 /src
parenta6f39ec1c568c38e7ef42d60eaf6c9ab8397af2a (diff)
mesa: adjust error message when there's a missing teximage
The current message makes it seem like the zoffset is invalid. Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/texgetimage.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index 59ec091257e..2f35ac6d77a 100644
--- a/src/mesa/main/texgetimage.c
+++ b/src/mesa/main/texgetimage.c
@@ -1013,8 +1013,7 @@ dimensions_error_check(struct gl_context *ctx,
texImage = select_tex_image(texObj, target, level, zoffset);
if (!texImage) {
/* missing texture image */
- _mesa_error(ctx, GL_INVALID_OPERATION,
- "%s(zoffset = %d)", caller, zoffset);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s(missing image)", caller);
return true;
}