xserver: Branch 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Feb 24 20:05:40 UTC 2025
dbe/dbe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 86244ff36f2da3dbcf6cee4784871377793269a4
Author: Enrico Weigelt, metux IT consult <info at metux.net>
Date: Tue Jul 16 19:39:13 2024 +0200
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 <info at metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1822>
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);
}
}
More information about the xorg-commit
mailing list