aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2007-05-18 13:47:46 -0700
committerEric Anholt <[email protected]>2007-05-18 13:47:46 -0700
commitc085e350df593ab2af60f53b86265db4c3eab38a (patch)
tree405455604ed9059caeb5a0fc76b3a43ae1c43392 /src/mesa/drivers/dri
parenta926b7397bb19dea74995bcb02c0ee5438e4a63c (diff)
Fix a refcounting mistake with first_swap_fence.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i915tex/intel_blit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915tex/intel_blit.c b/src/mesa/drivers/dri/i915tex/intel_blit.c
index ef596bdfc55..5d97f08434a 100644
--- a/src/mesa/drivers/dri/i915tex/intel_blit.c
+++ b/src/mesa/drivers/dri/i915tex/intel_blit.c
@@ -152,8 +152,8 @@ intelCopyBuffer(const __DRIdrawablePrivate * dPriv,
if (intel->first_swap_fence)
dri_fence_unreference(intel->first_swap_fence);
intel_batchbuffer_flush(intel->batch);
- dri_fence_reference(intel->first_swap_fence);
intel->first_swap_fence = intel->batch->last_fence;
+ dri_fence_reference(intel->first_swap_fence);
}
UNLOCK_HARDWARE(intel);