diff options
author | Michel Dänzer <daenzer@vmware.com> | 2010-04-23 11:14:13 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2010-04-23 11:16:03 +0200 |
commit | c37e275e778e8c944e3dfad159b1eb94c601af60 (patch) | |
tree | 68b260b7bffbbe22020790c4ce0bb546c4579e10 /src/glx | |
parent | 355370e30b083e6fd130c259f4378530c715142c (diff) |
glx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval.
Diffstat (limited to 'src/glx')
-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 3a53ce91b3..fa2b987853 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; } |