options: warn when dual-kawase blur is chosen on unsupported backends

Closes #464

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2020-09-08 07:04:06 +01:00
parent 670b4abae7
commit 7d32783d9e

View File

@@ -953,6 +953,11 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable,
"capping to 20.");
opt->blur_strength = 20;
}
if (!opt->experimental_backends) {
log_warn("Dual-kawase blur is not implemented by the legacy "
"backends, you must use the `experimental-backends` "
"option`.");
}
}
if (opt->resize_damage < 0) {