summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-03-15 11:16:41 -0600
committerBrian <brian@yutani.localnet.net>2007-03-15 11:16:41 -0600
commit4d2eb637a20e4fdf5d5f6c0ea4d4627894594661 (patch)
tree7e4223fc2aa2f615354e56641154796b9c02e0e4 /src/mesa/main
parent038e981cacdc6f32588442666cde8a8fc16cfdfc (diff)
no-op clear if buffer width or height is zero (bug 7205)
Diffstat (limited to 'src/mesa/main')
-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 0e3ed15584..11bd173e35 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;