From 1ca968363dd55e919bd91c8fc31c34d207af3958 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Fri, 5 Mar 2010 11:17:19 -0800 Subject: [PATCH] DRI2: expose OML_sync_control if possible If the server supports the OML related protocol, enable support for the extension. --- src/glx/dri2_glx.c | 3 +++ 1 file changed, 3 insertions(+) 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 } -- 2.30.2