From 86244ff36f2da3dbcf6cee4784871377793269a4 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: --- dbe/dbe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbe/dbe.c b/dbe/dbe.c index edd234db8..0c1f2e589 100644 --- a/dbe/dbe.c +++ b/dbe/dbe.c @@ -907,7 +907,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); } }