From c085e350df593ab2af60f53b86265db4c3eab38a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 18 May 2007 13:47:46 -0700 Subject: [PATCH] Fix a refcounting mistake with first_swap_fence. --- src/mesa/drivers/dri/i915tex/intel_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2