Mesa (master): mesa: adjust error message when there's a missing teximage

Ilia Mirkin imirkin at kemper.freedesktop.org
Thu Jul 23 20:24:02 UTC 2015


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

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Wed Jul 22 12:39:47 2015 -0400

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 <imirkin at alum.mit.edu>
Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/main/texgetimage.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index 59ec091..2f35ac6 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;
    }
 




More information about the mesa-commit mailing list