@@ -469,7 +469,6 @@ I830DRI2ScheduleFlip(ClientPtr client, DrawablePtr draw, DRI2BufferPtr front,
{
ScreenPtr screen = draw->pScreen;
I830DRI2BufferPrivatePtr front_priv, back_priv;
- dri_bo *tmp_bo;
DRI2FrameEventPtr flip_info;
Bool ret;
@@ -485,7 +484,6 @@ I830DRI2ScheduleFlip(ClientPtr client, DrawablePtr draw, DRI2BufferPtr front,
front_priv = front->driverPrivate;
back_priv = back->driverPrivate;
- tmp_bo = i830_get_pixmap_bo(front_priv->pixmap);
I830DRI2ExchangeBuffers(draw, front, back);
@@ -497,9 +495,7 @@ I830DRI2ScheduleFlip(ClientPtr client, DrawablePtr draw, DRI2BufferPtr front,
/* Unwind in case of failure */
if (!ret) {
- i830_set_pixmap_bo(back_priv->pixmap,
- i830_get_pixmap_bo(front_priv->pixmap));
- i830_set_pixmap_bo(front_priv->pixmap, tmp_bo);
+ I830DRI2ExchangeBuffers(draw, front, back);
return FALSE;
}