[Mesa-dev] [PATCH] texgetimage: add missing return on error
Brian Paul
brianp at vmware.com
Wed Oct 19 07:09:46 PDT 2011
On 10/19/2011 05:54 AM, nobled wrote:
> Missed this back in the arb_robustness branch
> <6b329b9274b18c50f4177eef7ee087d50ebc1525>.
> ---
> src/mesa/main/texgetimage.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
> index f911886..e6edb45 100644
> --- a/src/mesa/main/texgetimage.c
> +++ b/src/mesa/main/texgetimage.c
> @@ -849,6 +849,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 */
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list