glx: Fix listing of INTEL_swap_event in glXQueryExtensionsString()
authorOwen W. Taylor <otaylor@fishsoup.net>
Wed, 17 Oct 2012 04:50:28 +0000 (00:50 -0400)
committerChad Versace <chad.versace@linux.intel.com>
Wed, 17 Oct 2012 17:16:23 +0000 (10:16 -0700)
Due to a string mismatch, INTEL_swap_event wasn't listed among GLX
extensions for the connection, even when present on both client and
server. That is, glXQueryServerString and glXGetClientString reported the
extension, but glXQueryExtensionsString did not.

Note: This is a candidate for the stable branches.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56057
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/glx/dri2_glx.c

index a58b3152c9d80b9857ea337a87cd03b180bf9ddf..12b302601e1dff56e90d9183c1fbb19c2e6386c8 100644 (file)
@@ -1010,7 +1010,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);