Mesa (master): mesa: fix return value when clipping {Read, Draw}Pixels height <= 0
Ben Skeggs
darktama at kemper.freedesktop.org
Mon Oct 5 05:44:00 UTC 2009
Module: Mesa
Branch: master
Commit: 7aeaca33c331f70d507fc83583b13b8d9fc3e847
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7aeaca33c331f70d507fc83583b13b8d9fc3e847
Author: Ben Skeggs <bskeggs at redhat.com>
Date: Mon Oct 5 14:42:45 2009 +1000
mesa: fix return value when clipping {Read,Draw}Pixels height <= 0
Signed-off-by: Ben Skeggs <bskeggs at redhat.com>
---
src/mesa/main/image.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
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;
}
More information about the mesa-commit
mailing list