From: Eric Anholt Date: Tue, 18 Dec 2007 01:01:07 +0000 (-0800) Subject: [i915] Remove redundant set_draw_region code (like the comment says). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f1bfdc4bf5b72ac705b8cbb2dc431e133dcb5b8;p=mesa.git [i915] Remove redundant set_draw_region code (like the comment says). --- diff --git a/src/mesa/drivers/dri/intel/intel_buffers.c b/src/mesa/drivers/dri/intel/intel_buffers.c index 7011e3a67ad..38402ee9bff 100644 --- a/src/mesa/drivers/dri/intel/intel_buffers.c +++ b/src/mesa/drivers/dri/intel/intel_buffers.c @@ -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 */