(!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:
parent
b8985433a3
commit
37362c5d1a
|
@ -1691,14 +1691,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