From e707f9d933cb43665e595ae39147905b75ff5bed Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 10 Aug 2021 07:56:24 +1000 Subject: [PATCH] [client] egl: enable ffxCAS if disabled and the sharpness is changed --- client/renderers/EGL/desktop.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/renderers/EGL/desktop.c b/client/renderers/EGL/desktop.c index b055dee4..c553f40a 100644 --- a/client/renderers/EGL/desktop.c +++ b/client/renderers/EGL/desktop.c @@ -286,6 +286,13 @@ void egl_desktopConfigUI(EGL_Desktop * desktop) if (sharpness != desktop->ffxUniform.f[0]) { + // enable CAS if the sharpness was changed + if (!cas) + { + cas = true; + desktop->ffxCASEnable = cas; + egl_textureEnableFilter(desktop->ffxCASHandle, cas); + } desktop->ffxUniform.f[0] = sharpness; egl_shaderSetUniforms(desktop->ffxCAS, &desktop->ffxUniform, 1); invalidateCAS = true;