diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-03-05 11:17:19 -0800 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-03-05 11:22:05 -0800 |
commit | 1ca968363dd55e919bd91c8fc31c34d207af3958 (patch) | |
tree | d4520e1a1f04b0d97b65a44acde5434c30682775 /src/glx | |
parent | 6b3145d6ee07a0fa9bb867e96ebe6cf716961bb9 (diff) |
DRI2: expose OML_sync_control if possible
If the server supports the OML related protocol, enable support for the
extension.
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/dri2_glx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 29d589cdb9..d573e46296 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -614,6 +614,9 @@ dri2CreateScreen(__GLXscreenConfigs * psc, int screen, psp->setSwapInterval = dri2SetSwapInterval; psp->getSwapInterval = dri2GetSwapInterval; #endif +#if defined(X_DRI2GetMSC) && defined(X_DRI2WaitMSC) && defined(X_DRI2SwapInterval) + __glXEnableDirectExtension(psc, "GLX_OML_sync_control"); +#endif } /* DRI2 suports SubBuffer through DRI2CopyRegion, so it's always |