summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-05-18 13:47:46 -0700
committerEric Anholt <eric@anholt.net>2007-05-18 13:47:46 -0700
commitc085e350df593ab2af60f53b86265db4c3eab38a (patch)
tree405455604ed9059caeb5a0fc76b3a43ae1c43392 /src/mesa/drivers/dri
parenta926b7397bb19dea74995bcb02c0ee5438e4a63c (diff)
downloadexternal_mesa3d-c085e350df593ab2af60f53b86265db4c3eab38a.zip
external_mesa3d-c085e350df593ab2af60f53b86265db4c3eab38a.tar.gz
external_mesa3d-c085e350df593ab2af60f53b86265db4c3eab38a.tar.bz2
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 ef596bd..5d97f08 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);