aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-17 16:36:13 +0100
committerSimon Ser <contact@emersion.fr>2020-12-17 17:02:09 +0100
commit0dcdb5e7a1def069ca31b50cc4c5a84031e4a730 (patch)
tree344640e573a7461136f538f41207a5fa07943b32
parent0aa2ba0c0343788accc57c595c914bb611e12ea0 (diff)
backend/x11: fix DRI3 formats not used
We queried DRI3 formats, but we weren't using them. Because of a typo, only render formats were used. Fixes: c59aacf94465 ("backend/x11: query modifiers supported by X11 server") Closes: https://github.com/swaywm/wlroots/issues/2552
-rw-r--r--backend/x11/backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index 48f1aaee..6e79129f 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -523,7 +523,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
}
const struct wlr_drm_format *dri3_format =
- wlr_drm_format_set_get(render_formats, x11->x11_format->drm);
+ wlr_drm_format_set_get(&x11->dri3_formats, x11->x11_format->drm);
if (dri3_format == NULL) {
wlr_log(WLR_ERROR, "X11 server doesn't support DRM format 0x%"PRIX32,
x11->x11_format->drm);