Message ID | 1342090071-18809-1-git-send-email-zhigang.gong@linux.intel.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/src/intel_dri.c b/src/intel_dri.c index ed5078e..0405937 100644 --- a/src/intel_dri.c +++ b/src/intel_dri.c @@ -1023,9 +1023,10 @@ I830DRI2ScheduleFlip(struct intel_screen_private *intel, priv = info->front->driverPrivate; /* Exchange the current front-buffer with the fresh bo */ + + intel->back_buffer = intel->front_buffer; + drm_intel_bo_reference(intel->back_buffer); if (!(intel->uxa_flags & UXA_USE_GLAMOR)) { - intel->back_buffer = intel->front_buffer; - drm_intel_bo_reference(intel->back_buffer); intel_set_pixmap_bo(priv->pixmap, new_back); drm_intel_bo_unreference(new_back); }