summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}