[Mesa-dev] [PATCH] glx/dri2: use GLX prefix to enable INTEL_swap_event

Robert Bragg robert at sixbynine.org
Wed Feb 8 11:49:54 PST 2012


This adds the "GLX_" prefix to the string we pass to
__glXEnableDirectExtension() otherwise it doesn't match the name we have
in known_glx_extensions[] in glxextensions.c and doesn't get enabled.

This mistake wasn't noticed before since GLX_INTEL_swap_event was being
implicitly enabled for GLX v1.4 but that was changed in commit
d3f7597bc9f6d5

Signed-off-by: Robert Bragg <robert at sixbynine.org>
---
 src/glx/dri2_glx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 10b6f52..1fd8c99 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -950,7 +950,7 @@ dri2BindExtensions(struct dri2_screen *psc, const __DRIextension **extensions)
    __glXEnableDirectExtension(&psc->base, "GLX_SGI_make_current_read");
 
    /* FIXME: if DRI2 version supports it... */
-   __glXEnableDirectExtension(&psc->base, "INTEL_swap_event");
+   __glXEnableDirectExtension(&psc->base, "GLX_INTEL_swap_event");
 
    if (psc->dri2->base.version >= 3) {
       const unsigned mask = psc->dri2->getAPIMask(psc->driScreen);
-- 
1.7.7.5



More information about the mesa-dev mailing list