[PATCH 04/20] glx: Use __glX_send_client_info with XCB

Ian Romanick idr at freedesktop.org
Tue Dec 20 12:31:07 PST 2011


From: Ian Romanick <ian.d.romanick at intel.com>

__glX_send_client_info only supports XCB, so use that instead of
__glXClientInfo when USE_XCB is defined.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/glx/glxext.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/glx/glxext.c b/src/glx/glxext.c
index baa2489..12fff22 100644
--- a/src/glx/glxext.c
+++ b/src/glx/glxext.c
@@ -887,7 +887,11 @@ __glXInitialize(Display * dpy)
       return NULL;
    }
 
+#ifdef USE_XCB
+   __glX_send_client_info(dpyPriv);
+#else
    __glXClientInfo(dpy, dpyPriv->majorOpcode);
+#endif
 
    /* Grab the lock again and add the dispay private, unless somebody
     * beat us to initializing on this display in the meantime. */
-- 
1.7.6.4



More information about the xorg-devel mailing list