From: Jesse Barnes Date: Fri, 5 Mar 2010 19:17:19 +0000 (-0800) Subject: DRI2: expose OML_sync_control if possible X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ca968363dd55e919bd91c8fc31c34d207af3958;p=mesa.git DRI2: expose OML_sync_control if possible If the server supports the OML related protocol, enable support for the extension. --- diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 29d589cdb90..d573e46296b 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -613,6 +613,9 @@ dri2CreateScreen(__GLXscreenConfigs * psc, int screen, #ifdef X_DRI2SwapInterval psp->setSwapInterval = dri2SetSwapInterval; psp->getSwapInterval = dri2GetSwapInterval; +#endif +#if defined(X_DRI2GetMSC) && defined(X_DRI2WaitMSC) && defined(X_DRI2SwapInterval) + __glXEnableDirectExtension(psc, "GLX_OML_sync_control"); #endif }