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