glx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval.
authorMichel Dänzer <daenzer@vmware.com>
Fri, 23 Apr 2010 09:14:13 +0000 (11:14 +0200)
committerMichel Dänzer <michel@daenzer.net>
Fri, 23 Apr 2010 09:16:03 +0000 (11:16 +0200)
src/glx/dri2_glx.c

index 3a53ce91b382a19aff115600c85eddafd2de94e2..fa2b98785376c4c2f43143dcdf25a24f8d05568c 100644 (file)
@@ -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;
 }