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

This commit is contained in:
Josh Triplett 2006-05-14 22:37:55 -07:00
parent 2e49f58e4c
commit 442730a9a2

View File

@ -144,7 +144,7 @@ unsigned int XCBSendRequest(XCBConnection *c, int flags, struct iovec *vector, c
flags &= ~XCB_REQUEST_RAW; flags &= ~XCB_REQUEST_RAW;
/* do we need to work around the X server bug described in glx.xml? */ /* 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 == 17 && ((CARD32 *) vector[0].iov_base)[0] == 0x10004) ||
req->opcode == 21)) req->opcode == 21))
workaround = WORKAROUND_GLX_GET_FB_CONFIGS_BUG; workaround = WORKAROUND_GLX_GET_FB_CONFIGS_BUG;