DRI2: expose OML_sync_control if possible

If the server supports the OML related protocol, enable support for the
extension.
This commit is contained in:
Jesse Barnes
2010-03-05 11:17:19 -08:00
parent 6b3145d6ee
commit 1ca968363d

View File

@@ -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
}