diff options
author | Michel Dänzer <[email protected]> | 2010-04-23 11:14:13 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2010-04-23 11:16:03 +0200 |
commit | c37e275e778e8c944e3dfad159b1eb94c601af60 (patch) | |
tree | 68b260b7bffbbe22020790c4ce0bb546c4579e10 | |
parent | 355370e30b083e6fd130c259f4378530c715142c (diff) |
glx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval.
-rw-r--r-- | 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 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; } |