From d2d82f8a29d3698313956739a7d20704a62c6925 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 18 Dec 2007 18:54:59 -0800 Subject: [915] Set cliprects in the drawbuffer software fallback case as well. Otherwise, we may violate cliprect asssertions on clearing the buffers, which isn't affected by the fallback. --- src/mesa/drivers/dri/intel/intel_buffers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/intel/intel_buffers.c b/src/mesa/drivers/dri/intel/intel_buffers.c index c351cfcfbc..9892895510 100644 --- a/src/mesa/drivers/dri/intel/intel_buffers.c +++ b/src/mesa/drivers/dri/intel/intel_buffers.c @@ -911,6 +911,9 @@ intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb) /*_mesa_debug(ctx, "Software rendering\n");*/ FALLBACK(intel, INTEL_FALLBACK_DRAW_BUFFER, GL_TRUE); colorRegion = NULL; + + if (fb->Name != 0) + intelSetRenderbufferClipRects(intel); } else { /* draw to exactly one color buffer */ -- cgit v1.2.3