glx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval.
This commit is contained in:

committed by
Michel Dänzer

parent
355370e30b
commit
c37e275e77
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user