diff --git a/glx/glxcmds.c b/glx/glxcmds.c index 6f27ee609..4a157dcae 100644 --- a/glx/glxcmds.c +++ b/glx/glxcmds.c @@ -1689,15 +1689,12 @@ DoQueryContext(__GLXclientState * cl, GLXContextID gcId) __GLX_SWAP_SHORT(&reply.sequenceNumber); __GLX_SWAP_INT(&reply.length); __GLX_SWAP_INT(&reply.n); - WriteToClient(client, sizeof(xGLXQueryContextInfoEXTReply), &reply); __GLX_SWAP_INT_ARRAY(sendBuf, sizeof(sendBuf) / sizeof(CARD32)); - WriteToClient(client, sizeof(sendBuf), sendBuf); - } - else { - WriteToClient(client, sizeof(xGLXQueryContextInfoEXTReply), &reply); - WriteToClient(client, sizeof(sendBuf), sendBuf); } + WriteToClient(client, sizeof(xGLXQueryContextInfoEXTReply), &reply); + WriteToClient(client, sizeof(sendBuf), sendBuf); + return Success; }