mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-22 22:00:33 +01:00
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@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1822>
(cherry picked from commit 86244ff36f)
This commit is contained in:
parent
ce86a7c622
commit
ab1a65e563
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue