From cfcdce81ba38904e7b1f8fe8b553a2dbd7810b69 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Wed, 24 Jun 2020 19:15:20 +0300 Subject: [PATCH] Fix color in OpenGL when frame blending is disabled --- Shaders/MasterShader.fsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shaders/MasterShader.fsh b/Shaders/MasterShader.fsh index a7c33db..3f891d5 100644 --- a/Shaders/MasterShader.fsh +++ b/Shaders/MasterShader.fsh @@ -43,7 +43,7 @@ void main() switch (frame_blending_mode) { default: case DISABLED: - frag_color = scale(image, position, input_resolution, output_resolution); + frag_color = pow(scale(image, position, input_resolution, output_resolution), vec4(1.0 / GAMMA)); return; case SIMPLE: ratio = 0.5;