summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-09-25 12:14:44 -0700
committerEric Anholt <[email protected]>2012-10-09 14:32:03 -0700
commit7acf8ae0e1ed295fc1550f14e8ca812ba4f8af1f (patch)
treef5e9c9b16b784c1ca48a97d990857d094dc3b7fb /src/glx
parentd0937759db09797836e290220236f61ab0f18259 (diff)
glx: Reuse setSwapInterval for setting initial swap interval.
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/dri2_glx.c7
1 files changed, 2 insertions, 5 deletions
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;
}