From 11840cb658a20a8ac570351f2eb48ea51c2d5ae6 Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Sat, 21 Jan 2023 18:16:52 +0300 Subject: [PATCH] options: allow use of windows shaders for the egl backend and notify a user better if the shader interface is not available --- src/options.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/options.c b/src/options.c index e69bbb0223..238b636ee6 100644 --- a/src/options.c +++ b/src/options.c @@ -787,14 +787,13 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, } if (opt->window_shader_fg || opt->window_shader_fg_rules) { - if (opt->legacy_backends || opt->backend != BKEND_GLX) { - log_warn("The new window shader interface does not work with the " - "legacy glx backend.%s", - (opt->backend == BKEND_GLX) ? " You may want to use " - "\"--glx-fshader-win\" " - "instead on the legacy " - "glx backend." - : ""); + if (opt->backend == BKEND_XRENDER || opt->legacy_backends) { + log_warn(opt->backend == BKEND_XRENDER + ? "Shader interface is not available for the " + "xrender backend." + : "The new shader interface is not available for " + "the legacy glx backend. You may want to use " + "--glx-fshader-win instead."); opt->window_shader_fg = NULL; c2_list_free(&opt->window_shader_fg_rules, free); }