glx: Reuse setSwapInterval for setting initial swap interval.
This commit is contained in:
@@ -419,15 +419,12 @@ dri2CreateDrawable(struct glx_screen *base, XID xDrawable,
|
|||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef X_DRI2SwapInterval
|
|
||||||
/*
|
/*
|
||||||
* Make sure server has the same swap interval we do for the new
|
* Make sure server has the same swap interval we do for the new
|
||||||
* drawable.
|
* drawable.
|
||||||
*/
|
*/
|
||||||
if (pdp->swapAvailable)
|
if (psc->vtable.setSwapInterval)
|
||||||
DRI2SwapInterval(psc->base.dpy, xDrawable, pdraw->swap_interval);
|
psc->vtable.setSwapInterval(&pdraw->base, pdraw->swap_interval);
|
||||||
#endif
|
|
||||||
|
|
||||||
return &pdraw->base;
|
return &pdraw->base;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user