From ab1a65e563b4a187f71577f03028ca17eb986e78 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 16 Jul 2024 19:39:13 +0200 Subject: [PATCH] dbe: fix byte swapping in SProcDbeSwapBuffers() The loop forgot to move the SwapInfo pointer, so the same list entry gets swapped over and over again, while the remaining ones get ignored. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: (cherry picked from commit 86244ff36f2da3dbcf6cee4784871377793269a4) --- dbe/dbe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbe/dbe.c b/dbe/dbe.c index 8b5be6d63..017de5321 100644 --- a/dbe/dbe.c +++ b/dbe/dbe.c @@ -905,7 +905,7 @@ SProcDbeSwapBuffers(ClientPtr client) * followed by a 1 byte swap action and then 3 pad bytes. We only need * to swap the window information. */ - for (i = 0; i < stuff->n; i++) { + for (i = 0; i < stuff->n; i++, pSwapInfo++) { swapl(&pSwapInfo->window); } }