OSDN Git Service

intel: Clean up merge leftover from the DRI2 swap throttling.
authorEric Anholt <eric@anholt.net>
Mon, 26 Oct 2009 16:15:42 +0000 (09:15 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 29 Oct 2009 17:01:16 +0000 (10:01 -0700)
src/mesa/drivers/dri/intel/intel_batchbuffer.c

index 6aa36d1..e94b836 100644 (file)
@@ -201,11 +201,6 @@ _intel_batchbuffer_flush(struct intel_batchbuffer *batch, const char *file,
       drm_intel_bo_reference(intel->first_post_swapbuffers_batch);
    }
 
-   if (intel->first_post_swapbuffers_batch == NULL) {
-      intel->first_post_swapbuffers_batch = intel->batch->buf;
-      drm_intel_bo_reference(intel->first_post_swapbuffers_batch);
-   }
-
    if (used == 0) {
       batch->cliprect_mode = IGNORE_CLIPRECTS;
       return;