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> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1665>
This commit is contained in:
parent
ab4142bc75
commit
56ca98aa47
|
@ -1689,14 +1689,11 @@ DoQueryContext(__GLXclientState * cl, GLXContextID gcId)
|
||||||
__GLX_SWAP_SHORT(&reply.sequenceNumber);
|
__GLX_SWAP_SHORT(&reply.sequenceNumber);
|
||||||
__GLX_SWAP_INT(&reply.length);
|
__GLX_SWAP_INT(&reply.length);
|
||||||
__GLX_SWAP_INT(&reply.n);
|
__GLX_SWAP_INT(&reply.n);
|
||||||
WriteToClient(client, sizeof(xGLXQueryContextInfoEXTReply), &reply);
|
|
||||||
__GLX_SWAP_INT_ARRAY(sendBuf, sizeof(sendBuf) / sizeof(CARD32));
|
__GLX_SWAP_INT_ARRAY(sendBuf, sizeof(sendBuf) / sizeof(CARD32));
|
||||||
WriteToClient(client, sizeof(sendBuf), sendBuf);
|
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
WriteToClient(client, sizeof(xGLXQueryContextInfoEXTReply), &reply);
|
WriteToClient(client, sizeof(xGLXQueryContextInfoEXTReply), &reply);
|
||||||
WriteToClient(client, sizeof(sendBuf), sendBuf);
|
WriteToClient(client, sizeof(sendBuf), sendBuf);
|
||||||
}
|
|
||||||
|
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue