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.
This commit is contained in:
Christopher Willis-Ford 2019-02-05 18:19:13 -08:00
parent 1db67a474e
commit 8bd6241160

View File

@ -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 ?