mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
6b3145d6ee
commit
1ca968363d
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue