Fix a compiler complaint

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-02-18 21:08:21 +00:00
parent 2a41847aa6
commit bb8fd08b5b
2 changed files with 14 additions and 4 deletions

View File

@ -1153,17 +1153,19 @@ bool init_render(session_t *ps) {
// Blur filter
if (ps->o.blur_background || ps->o.blur_background_frame) {
bool ret;
bool ret = false;
if (ps->o.backend == BKEND_GLX) {
#ifdef CONFIG_OPENGL
ret = glx_init_blur(ps);
#else
assert(false);
#endif
} else
} else {
ret = xr_init_blur(ps);
if (!ret)
return false;
}
if (!ret) {
return ret;
}
}
ps->gaussian_map = gaussian_kernel(ps->o.shadow_radius);