[Xcb-commit] xcb

Josh Triplett josh at kemper.freedesktop.org
Sun May 14 22:37:55 PDT 2006


 xcb/src/xcb_out.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree d3f55a3da55578f8287082ea3dd4f3abe572bfb4 (from 27fde6937b828a49ef29249d6be830ace1c817b4)
Author: Josh Triplett <josh at freedesktop.org>
Date:   Sun May 14 22:37:55 2006 -0700

    In the GLX workaround, use !strcmp to check for equality with "GLX", not strcmp.

diff --git a/xcb/src/xcb_out.c b/xcb/src/xcb_out.c
index 2667973..e371cd1 100644
--- a/xcb/src/xcb_out.c
+++ b/xcb/src/xcb_out.c
@@ -144,7 +144,7 @@ unsigned int XCBSendRequest(XCBConnectio
     flags &= ~XCB_REQUEST_RAW;
 
     /* do we need to work around the X server bug described in glx.xml? */
-    if(req->ext && !req->isvoid && strcmp(req->ext->name, "GLX") &&
+    if(req->ext && !req->isvoid && !strcmp(req->ext->name, "GLX") &&
             ((req->opcode == 17 && ((CARD32 *) vector[0].iov_base)[0] == 0x10004) ||
              req->opcode == 21))
         workaround = WORKAROUND_GLX_GET_FB_CONFIGS_BUG;


More information about the xcb-commit mailing list