Fix color in OpenGL when frame blending is disabled

This commit is contained in:
Lior Halphon 2020-06-24 19:15:20 +03:00
parent e88a48e0a1
commit cfcdce81ba

View File

@ -43,7 +43,7 @@ void main()
switch (frame_blending_mode) { switch (frame_blending_mode) {
default: default:
case DISABLED: 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; return;
case SIMPLE: case SIMPLE:
ratio = 0.5; ratio = 0.5;