summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-12-17 17:01:07 -0800
committerEric Anholt <eric@anholt.net>2007-12-17 17:01:07 -0800
commit6f1bfdc4bf5b72ac705b8cbb2dc431e133dcb5b8 (patch)
tree1f7440950fa3bd495048269266592b59e32e7761
parent33487c15ba8324bf0b635293214cad246661915e (diff)
[i915] Remove redundant set_draw_region code (like the comment says).
-rw-r--r--src/mesa/drivers/dri/intel/intel_buffers.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_buffers.c b/src/mesa/drivers/dri/intel/intel_buffers.c
index 7011e3a67..38402ee9b 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 */