[i915] Remove redundant set_draw_region code (like the comment says).
authorEric Anholt <eric@anholt.net>
Tue, 18 Dec 2007 01:01:07 +0000 (17:01 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 18 Dec 2007 01:01:07 +0000 (17:01 -0800)
src/mesa/drivers/dri/intel/intel_buffers.c

index 7011e3a67adacb53da3c049d8919e964b7539eb7..38402ee9bff45cf56971e9c315a01b3f064a884e 100644 (file)
@@ -1020,20 +1020,6 @@ intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb)
       ctx->Driver.Enable(ctx, GL_DEPTH_TEST, GL_FALSE);
    }
 
-   /**
-    ** Release old regions, reference new regions
-    **/
-#if 0                           /* XXX FBO: this seems to be redundant with i915_state_draw_region() */
-   if (intel->draw_region != colorRegion) {
-      intel_region_release(&intel->draw_region);
-      intel_region_reference(&intel->draw_region, colorRegion);
-   }
-   if (intel->intelScreen->depth_region != depthRegion) {
-      intel_region_release(&intel->intelScreen->depth_region);
-      intel_region_reference(&intel->intelScreen->depth_region, depthRegion);
-   }
-#endif
-
    intel->vtbl.set_draw_region(intel, colorRegion, depthRegion);
 
    /* update viewport since it depends on window size */