From b71a8420ca4daff0c06f3b4b2c85d664d8af60c8 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Thu, 29 Sep 2022 07:59:25 +0100 Subject: [PATCH] options: add warning for using the egl backend --- src/options.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/options.c b/src/options.c index 451bcf9..3186ddc 100644 --- a/src/options.c +++ b/src/options.c @@ -904,6 +904,15 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, log_warn("--monitor-repaint has no effect when backend is not xrender"); } + if (opt->backend == BKEND_EGL) { + if (opt->legacy_backends) { + log_error("The egl backend is not supported with " + "--legacy-backends"); + return false; + } + log_warn("The egl backend is still experimental, use with care."); + } + if (!opt->legacy_backends && !backend_list[opt->backend]) { log_error("Backend \"%s\" is only available as part of the legacy " "backends.",