mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 06:11:46 +00:00
[client] egl: enable ffxCAS if disabled and the sharpness is changed
This commit is contained in:
parent
64ed383128
commit
e707f9d933
1 changed files with 7 additions and 0 deletions
|
@ -286,6 +286,13 @@ void egl_desktopConfigUI(EGL_Desktop * desktop)
|
||||||
|
|
||||||
if (sharpness != desktop->ffxUniform.f[0])
|
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;
|
desktop->ffxUniform.f[0] = sharpness;
|
||||||
egl_shaderSetUniforms(desktop->ffxCAS, &desktop->ffxUniform, 1);
|
egl_shaderSetUniforms(desktop->ffxCAS, &desktop->ffxUniform, 1);
|
||||||
invalidateCAS = true;
|
invalidateCAS = true;
|
||||||
|
|
Loading…
Reference in a new issue