From: Brian Date: Thu, 15 Mar 2007 17:16:41 +0000 (-0600) Subject: no-op clear if buffer width or height is zero (bug 7205) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d2eb637a20e4fdf5d5f6c0ea4d4627894594661;p=mesa.git no-op clear if buffer width or height is zero (bug 7205) --- diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index 0e3ed155841..11bd173e35c 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -140,6 +140,9 @@ _mesa_Clear( GLbitfield mask ) return; } + if (ctx->DrawBuffer->Width == 0 || ctx->DrawBuffer->Height == 0) + return; + if (ctx->RenderMode == GL_RENDER) { GLbitfield bufferMask;