projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4d51d8
)
no-op glCopyPixels if width or height is zero
author
Brian
<brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 22:42:55 +0000
(15:42 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 22:42:55 +0000
(15:42 -0700)
src/mesa/main/drawpix.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/drawpix.c
b/src/mesa/main/drawpix.c
index e4be0d496e9b5364e41f26f25bed408b92c2d83f..ae9c7e29a1508246aed33626c5ac1afee88a0925 100644
(file)
--- a/
src/mesa/main/drawpix.c
+++ b/
src/mesa/main/drawpix.c
@@
-239,7
+239,7
@@
_mesa_CopyPixels( GLint srcx, GLint srcy, GLsizei width, GLsizei height,
return;
}
- if (!ctx->Current.RasterPosValid) {
+ if (!ctx->Current.RasterPosValid
|| width ==0 || height == 0
) {
return;
}