From 37362c5d1a48fc6d09c34732d9ac95d0d9c67cd9 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 28 Aug 2024 14:09:55 +0200 Subject: [PATCH] (!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 --- glx/glxcmds.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/glx/glxcmds.c b/glx/glxcmds.c index ebe63b033..c9520199f 100644 --- a/glx/glxcmds.c +++ b/glx/glxcmds.c @@ -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; }