Warn when using new blur methods on old backends
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
1da726047a
commit
8e0b467138
|
@ -1136,7 +1136,13 @@ bool init_render(session_t *ps) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Blur filter
|
// Blur filter
|
||||||
if (ps->o.blur_method) {
|
if (ps->o.blur_method && ps->o.blur_method != BLUR_METHOD_KERNEL) {
|
||||||
|
log_warn("Old backends only support blur method \"kernel\". Your blur "
|
||||||
|
"setting will not be applied");
|
||||||
|
ps->o.blur_method = BLUR_METHOD_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ps->o.blur_method == BLUR_METHOD_KERNEL) {
|
||||||
ps->blur_kerns_cache =
|
ps->blur_kerns_cache =
|
||||||
ccalloc(ps->o.blur_kernel_count, struct x_convolution_kernel *);
|
ccalloc(ps->o.blur_kernel_count, struct x_convolution_kernel *);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue