glx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval.

This commit is contained in:
Michel Dänzer
2010-04-23 11:14:13 +02:00
committed by Michel Dänzer
parent 355370e30b
commit c37e275e77

View 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;
}