From: Michel Dänzer Date: Fri, 23 Apr 2010 09:14:13 +0000 (+0200) Subject: glx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c37e275e778e8c944e3dfad159b1eb94c601af60;p=mesa.git glx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval. --- 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; }