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 e4be0d4..ae9c7e2 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;
    }