From 79120e0d3337f5d7ee07c0fdc993b34126b0bb3e Mon Sep 17 00:00:00 2001 From: Filippo Tarpini Date: Sun, 28 May 2023 12:30:16 +0300 Subject: [PATCH] Video: Fix lens_distortion post process shader not compiling `any()` failed to build on my machine, but it doesn't seem to be necessary --- Data/Sys/Shaders/lens_distortion.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data/Sys/Shaders/lens_distortion.glsl b/Data/Sys/Shaders/lens_distortion.glsl index f36f232524..b0c872c45e 100644 --- a/Data/Sys/Shaders/lens_distortion.glsl +++ b/Data/Sys/Shaders/lens_distortion.glsl @@ -81,7 +81,7 @@ void main() float2 uv = (widenedRadial/2.0f) + float2(0.5f, 0.5f) + float2(offsetAdd, 0.0f); // Sample the texture at the source location - if(any(clamp(uv, 0.0, 1.0) != uv)) + if (clamp(uv, 0.0, 1.0) != uv) { // black if beyond bounds SetOutput(float4(0.0, 0.0, 0.0, 0.0));