From 7d887f033253238ea8f1b8f6805b98dc2c477633 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 15 Dec 2019 12:19:22 +0000 Subject: [PATCH] Fix NV shader compile errors in combined.frag. --- glsl/combined.frag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glsl/combined.frag b/glsl/combined.frag index 773386be93..2b63063c91 100644 --- a/glsl/combined.frag +++ b/glsl/combined.frag @@ -85,9 +85,9 @@ void main() { vec2 coords = vTexCoord.st; - if (AntialiasPixelsPerTexel > 0) + if (AntialiasPixelsPerTexel > 0.0) { - vec2 textureSize = Size(vTexSampler.s); + vec2 textureSize = vec2(Size(vTexSampler.s)); vec2 offset = fract(coords.st * textureSize); // Offset the sampling point to simulate bilinear intepolation in window coordinates instead of texture coordinates