From fc037ccc954c99a4de7a399420729e0e1ec7c772 Mon Sep 17 00:00:00 2001 From: Quantum Date: Tue, 19 Oct 2021 19:38:32 -0400 Subject: [PATCH] [client] egl: handle filter setup returning false As discussed, this should just skip the filter as if it's disabled. --- client/renderers/EGL/postprocess.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/renderers/EGL/postprocess.c b/client/renderers/EGL/postprocess.c index 0f22dd6d..1757bd44 100644 --- a/client/renderers/EGL/postprocess.c +++ b/client/renderers/EGL/postprocess.c @@ -613,9 +613,9 @@ bool egl_postProcessRun(EGL_PostProcess * this, EGL_Texture * tex, vector_forEach(filter, &this->filters) { egl_filterSetOutputResHint(filter, targetX, targetY); - egl_filterSetup(filter, tex->format.pixFmt, sizeX, sizeY); - if (!egl_filterPrepare(filter)) + if (!egl_filterSetup(filter, tex->format.pixFmt, sizeX, sizeY) || + !egl_filterPrepare(filter)) continue; texture = egl_filterRun(filter, &filterRects, texture);