summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Barnes <[email protected]>2010-03-05 11:17:19 -0800
committerJesse Barnes <[email protected]>2010-03-05 11:22:05 -0800
commit1ca968363dd55e919bd91c8fc31c34d207af3958 (patch)
treed4520e1a1f04b0d97b65a44acde5434c30682775 /src
parent6b3145d6ee07a0fa9bb867e96ebe6cf716961bb9 (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')
-rw-r--r--src/glx/dri2_glx.c3
1 files changed, 3 insertions, 0 deletions
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
@@ -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