Fix a refcounting mistake with first_swap_fence.

This commit is contained in:
Eric Anholt
2007-05-18 13:47:46 -07:00
parent a926b7397b
commit c085e350df
+1 -1
View File
@@ -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);