xserver/hw
Michel Dänzer 4926348d82 dri2: Use booleans for (fake) front buffer tracking in do_get_buffers
This works as intended — the (fake) front buffer needs to be added
only if the client didn't request it in the first place — even if the
client requests the same attachment multiple times. This ensures we
never try to access more than (count + 1) entries of the buffers array.

Fixes: ff6c7764c2 ("DRI2: Implement protocol for DRI2GetBuffersWithFormat")
Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
(cherry picked from commit b7aa65cc3b)

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2229>
2026-06-02 09:47:54 +10:00
..
kdrive ephyr: Fix incompatible pointer type build error 2024-05-12 08:00:00 +00:00
vfb mi: List extensions in usage message 2021-01-29 12:52:09 +00:00
xfree86 dri2: Use booleans for (fake) front buffer tracking in do_get_buffers 2026-06-02 09:47:54 +10:00
xnest Xnest: fix broken exposure events 2024-10-12 00:46:34 +00:00
xquartz xquartz: Bump copyrights in Info.plist to 2026 2026-03-25 23:47:59 -07:00
xwin XWin.man: fix typos in font change escapes 2025-06-12 18:10:31 -07:00
Makefile.am Drop XWayland DDX 2021-09-15 21:49:17 +03:00
meson.build Drop XWayland DDX 2021-09-15 21:49:17 +03:00