From 4d2eb637a20e4fdf5d5f6c0ea4d4627894594661 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 15 Mar 2007 11:16:41 -0600 Subject: [PATCH] no-op clear if buffer width or height is zero (bug 7205) --- src/mesa/main/buffers.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2