From b402cddd010f4bef7c1cbed1de9e8c5b464f36c6 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 13 May 2018 14:20:54 +0900 Subject: [PATCH] graphics: Bug fix: wrong refactoring in shader --- internal/graphics/shader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/graphics/shader.go b/internal/graphics/shader.go index a4e4b0cd8..9d7236bd5 100644 --- a/internal/graphics/shader.go +++ b/internal/graphics/shader.go @@ -90,7 +90,7 @@ highp vec2 roundTexel(highp vec2 p) { // highp (relative) precision is 2^(-16) in the spec. // The minimum value for a denominator is half of 65536. highp float factor = 1.0 / 32768.0; - return p - (mod(p.x + factor * 0.5, factor) - factor * 0.5); + return p - (mod(p + factor * 0.5, factor) - factor * 0.5); } void main(void) {