From 7acf8ae0e1ed295fc1550f14e8ca812ba4f8af1f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 25 Sep 2012 12:14:44 -0700 Subject: glx: Reuse setSwapInterval for setting initial swap interval. --- src/glx/dri2_glx.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/glx') diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 07a3384d0ab..cb3412e8fc6 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -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; } -- cgit v1.2.3