mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 23:25:08 +00:00
(submit/glx-cleanups-vla) 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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user