From 8962ddca01126db53e44cf743d59e202b3e358e6 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 2 Feb 2024 00:49:38 +0300 Subject: [PATCH] rsx/glsl: Fix typo --- .../RSX/Program/GLSLSnippets/VideoOutCalibrationPass.glsl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/Program/GLSLSnippets/VideoOutCalibrationPass.glsl b/rpcs3/Emu/RSX/Program/GLSLSnippets/VideoOutCalibrationPass.glsl index 65b5836a15..2f543af68d 100644 --- a/rpcs3/Emu/RSX/Program/GLSLSnippets/VideoOutCalibrationPass.glsl +++ b/rpcs3/Emu/RSX/Program/GLSLSnippets/VideoOutCalibrationPass.glsl @@ -20,6 +20,9 @@ layout(location=0) out vec4 ocol; #define STEREO_MODE_ANAGLYPH_TRIOSCOPIC 8 #define STEREO_MODE_ANAGLYPH_AMBER_BLUE 9 +#define TRUE 1 +#define FALSE 0 + vec2 left_single_matrix = vec2(1.f, 0.4898f); vec2 right_single_matrix = vec2(0.f, 0.510204f); vec2 sbs_single_matrix = vec2(2.0, 0.4898f); @@ -143,8 +146,8 @@ void main() { vec4 color = read_source(); color.rgb = pow(color.rgb, vec3(gamma)); - ocol = (limit_range == 0) - ? ocol = color + ocol = (limit_range == FALSE) + ? color : ((color * 220.) + 16.) / 255.; } )"