[915] Set cliprects in the drawbuffer software fallback case as well.
authorEric Anholt <eric@anholt.net>
Wed, 19 Dec 2007 02:54:59 +0000 (18:54 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 19 Dec 2007 02:56:20 +0000 (18:56 -0800)
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

index c351cfc..9892895 100644 (file)
@@ -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 */