summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-03-15 11:16:41 -0600
committerBrian <[email protected]>2007-03-15 11:16:41 -0600
commit4d2eb637a20e4fdf5d5f6c0ea4d4627894594661 (patch)
tree7e4223fc2aa2f615354e56641154796b9c02e0e4 /src
parent038e981cacdc6f32588442666cde8a8fc16cfdfc (diff)
no-op clear if buffer width or height is zero (bug 7205)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/buffers.c3
1 files changed, 3 insertions, 0 deletions
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;