no-op glCopyPixels if width or height is zero
authorBrian <brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 22:42:55 +0000 (15:42 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 22:42:55 +0000 (15:42 -0700)
src/mesa/main/drawpix.c

index e4be0d496e9b5364e41f26f25bed408b92c2d83f..ae9c7e29a1508246aed33626c5ac1afee88a0925 100644 (file)
@@ -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;
    }