From c37e275e778e8c944e3dfad159b1eb94c601af60 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Fri, 23 Apr 2010 11:14:13 +0200 Subject: [PATCH] glx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval. --- src/glx/dri2_glx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 3a53ce91b38..fa2b9878537 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -204,12 +204,14 @@ dri2CreateDrawable(__GLXscreenConfigs * psc, return NULL; } +#ifdef X_DRI2SwapInterval /* * Make sure server has the same swap interval we do for the new * drawable. */ if (pdp->swapAvailable) DRI2SwapInterval(psc->dpy, xDrawable, pdraw->swap_interval); +#endif return &pdraw->base; } -- 2.30.2