From: Brian Paul Date: Mon, 5 Oct 2009 17:10:31 +0000 (-0600) Subject: mesa: fix return value when clipping {Read,Draw}Pixels height <= 0 X-Git-Tag: 062012170305~15905^2~131 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8768bbc9de1441384cecc147d51c9ee6431b924;p=profile%2Fivi%2Fmesa.git mesa: fix return value when clipping {Read,Draw}Pixels height <= 0 Signed-off-by: Ben Skeggs (cherry picked from master, commit 7aeaca33c331f70d507fc83583b13b8d9fc3e847) --- diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index baecbab..139e56a 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -5511,7 +5511,7 @@ _mesa_clip_drawpixels(const GLcontext *ctx, } if (*height <= 0) - return GL_TRUE; + return GL_FALSE; return GL_TRUE; } @@ -5564,7 +5564,7 @@ _mesa_clip_readpixels(const GLcontext *ctx, *height -= (*srcY + *height - buffer->Height); if (*height <= 0) - return GL_TRUE; + return GL_FALSE; return GL_TRUE; }