Commit 9a563d5e authored by Brian's avatar Brian

no-op glCopyPixels if width or height is zero

parent f4d51d89
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment