Fix openGl overlay colors

This commit is contained in:
Megamouse 2023-02-06 21:58:03 +01:00
parent 9a35684507
commit 5a63271f0e

View File

@ -138,7 +138,11 @@ void main()
ocol = texture(fs1, vec3(tc0.x, fract(tc0.y), trunc(tc0.y))).rrrr * diff_color; ocol = texture(fs1, vec3(tc0.x, fract(tc0.y), trunc(tc0.y))).rrrr * diff_color;
break; break;
case SAMPLER_MODE_TEXTURE2D: case SAMPLER_MODE_TEXTURE2D:
#ifdef VULKAN
ocol = sample_image(fs0, tc0, blur_intensity).bgra * diff_color; ocol = sample_image(fs0, tc0, blur_intensity).bgra * diff_color;
#else
ocol = sample_image(fs0, tc0, blur_intensity).rgba * diff_color;
#endif
break; break;
} }
} }