From: Brian Date: Mon, 5 Nov 2007 22:42:55 +0000 (-0700) Subject: no-op glCopyPixels if width or height is zero X-Git-Tag: 062012170305~17580^2~390^2~3425 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a563d5e696a7c8fc09f7da5a0d33a9675b00e4c;p=profile%2Fivi%2Fmesa.git no-op glCopyPixels if width or height is zero --- diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c index e4be0d4..ae9c7e2 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; }