Module: Mesa Branch: master Commit: c37e275e778e8c944e3dfad159b1eb94c601af60 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c37e275e778e8c944e3dfad159b1eb94c601af60
Author: Michel Dänzer <[email protected]> Date: Fri Apr 23 11:14:13 2010 +0200 glx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval. --- src/glx/dri2_glx.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 3a53ce9..fa2b987 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; } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
