From 813a1984f9823f3a0e287f3302650214cd413c8d Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 22 Oct 2023 20:09:37 +0100 Subject: [PATCH] Fix shader type conversion. --- glsl/postprocess_menufade.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glsl/postprocess_menufade.frag b/glsl/postprocess_menufade.frag index 28955da20a..01e29dde8f 100644 --- a/glsl/postprocess_menufade.frag +++ b/glsl/postprocess_menufade.frag @@ -27,6 +27,6 @@ vec4 ColorForEffect(float effect, vec4 c) void main() { - vec4 c = texture(WorldTexture, gl_FragCoord.xy / textureSize(WorldTexture, 0)); + vec4 c = texture(WorldTexture, gl_FragCoord.xy / vec2(textureSize(WorldTexture, 0))); fragColor = ColorForEffect(From, c) * Blend + ColorForEffect(To, c) * (1.0 - Blend); }