From: Eric Anholt Date: Fri, 18 May 2007 20:47:46 +0000 (-0700) Subject: Fix a refcounting mistake with first_swap_fence. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c085e350df593ab2af60f53b86265db4c3eab38a;p=mesa.git Fix a refcounting mistake with first_swap_fence. --- 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);