From 8bd62411609ca86161a9952487aa0f3f754ef7b9 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Tue, 5 Feb 2019 18:19:13 -0800 Subject: [PATCH] Fix direction for Y iteration on CPU path For some reason the JavaScript engine insists on running the code instead of doing what the comment says. I guess they should match. --- src/RenderWebGL.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RenderWebGL.js b/src/RenderWebGL.js index 4abdd9e..52cac2d 100644 --- a/src/RenderWebGL.js +++ b/src/RenderWebGL.js @@ -747,7 +747,7 @@ class RenderWebGL extends EventEmitter { return this._isTouchingColorGpuFin(bounds, color3b, y); } for (let x = 0; x < bounds.width; ++x) { - point[1] = bounds.top + y; // bounds.top <= y < bounds.bottom ("flipped") + point[1] = bounds.top - y; // bounds.top <= y < bounds.bottom ("flipped") point[0] = bounds.left + x; // bounds.left <= x < bounds.right // if we use a mask, check our sample color... if (hasMask ?