From: nobled Date: Wed, 19 Oct 2011 11:54:06 +0000 (-0400) Subject: texgetimage: add missing return on error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac0ec07e6c8bad958f583aae192fe5a80a63da7b;p=mesa.git texgetimage: add missing return on error Missed this back in the arb_robustness branch <6b329b9274b18c50f4177eef7ee087d50ebc1525>. NOTE: This is a candidate for the 7.11 branch. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 3adf7e3217e..31d49f2d823 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -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 */