From: Eric Anholt Date: Wed, 19 Dec 2007 02:54:59 +0000 (-0800) Subject: [915] Set cliprects in the drawbuffer software fallback case as well. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2d82f8a29d3698313956739a7d20704a62c6925;p=mesa.git [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. --- diff --git a/src/mesa/drivers/dri/intel/intel_buffers.c b/src/mesa/drivers/dri/intel/intel_buffers.c index c351cfcfbc4..98928955102 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 */