texgetimage: add missing return on error
authornobled <nobled@dreamwidth.org>
Wed, 19 Oct 2011 11:54:06 +0000 (07:54 -0400)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 3 Nov 2011 22:27:08 +0000 (15:27 -0700)
Missed this back in the arb_robustness branch
<6b329b9274b18c50f4177eef7ee087d50ebc1525>.

NOTE: This is a candidate for the 7.11 branch.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/texgetimage.c

index 3adf7e3217ec9f13dfa811e85c6cd093baaf70fd..31d49f2d8236525b320976dafe32a31b7196c89b 100644 (file)
@@ -851,6 +851,7 @@ getcompressedteximage_error_check(struct gl_context *ctx, GLenum target,
          _mesa_error(ctx, GL_INVALID_OPERATION,
                      "glGetnCompressedTexImageARB(out of bounds access:"
                      " bufSize (%d) is too small)", clientMemSize);
+         return GL_TRUE;
       }
    } else {
       /* do bounds checking on PBO write */