From 84a5cc0fcaadbe379e93e54058a7237bb4272210 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 28 Jul 2022 18:44:49 +0200 Subject: [PATCH] Fix typo. --- drivers/gles2/shaders/tonemap.glsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gles2/shaders/tonemap.glsl b/drivers/gles2/shaders/tonemap.glsl index 59889ff09..4e138a5e3 100644 --- a/drivers/gles2/shaders/tonemap.glsl +++ b/drivers/gles2/shaders/tonemap.glsl @@ -255,9 +255,10 @@ vec4 apply_fxaa(vec4 color, vec2 uv_interp, vec2 pixel_size) { float lumaSW = dot(rgbSW.rgb, luma) - ((1.0 - rgbSW.a) / 8.0); float lumaSE = dot(rgbSE.rgb, luma) - ((1.0 - rgbSE.a) / 8.0); float lumaM = dot(rgbM, luma) - (color.a / 8.0); +#endif + float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE))); float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE))); -#endif vec2 dir; dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));