projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a15d9ca
)
mesa: fix return value when clipping {Read,Draw}Pixels height <= 0
author
Brian Paul
<brianp@vmware.com>
Mon, 5 Oct 2009 17:10:31 +0000
(11:10 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 5 Oct 2009 17:10:31 +0000
(11:10 -0600)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
(cherry picked from master, commit
7aeaca33c331f70d507fc83583b13b8d9fc3e847
)
src/mesa/main/image.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/image.c
b/src/mesa/main/image.c
index baecbab0a35bb4f373d7a7ab469beacab286de9b..139e56a96be037a21fd249ec35d1c1b7c7c46d80 100644
(file)
--- 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_
TRU
E;
+ return GL_
FALS
E;
return GL_TRUE;
}
@@
-5564,7
+5564,7
@@
_mesa_clip_readpixels(const GLcontext *ctx,
*height -= (*srcY + *height - buffer->Height);
if (*height <= 0)
- return GL_
TRU
E;
+ return GL_
FALS
E;
return GL_TRUE;
}