(!1665) glx: DoQueryContext(): drop duplicate write path

We now have two copies of the same write path in both swapped and
non-swapped branch. One is enough.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-08-28 14:09:55 +02:00
parent b8985433a3
commit 37362c5d1a

View File

@ -1691,15 +1691,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;
}