summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-11-05 15:42:55 -0700
committerBrian <[email protected]>2007-11-05 15:42:55 -0700
commit9a563d5e696a7c8fc09f7da5a0d33a9675b00e4c (patch)
tree0fcfa7c8bcd8b7e03ad6dc2571fe215165e1e495 /src/mesa
parentf4d51d8923db9fd71e5f9fe965769625bd0d1240 (diff)
no-op glCopyPixels if width or height is zero
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/drawpix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c
index e4be0d496e9..ae9c7e29a15 100644
--- 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;
}