From 5cd438707ddb7e6876fcbd406063e499efeeea2b Mon Sep 17 00:00:00 2001 From: Abhishek Soni Date: Sat, 1 Jul 2017 09:41:42 +0530 Subject: [PATCH] pass settings to the runner instance --- src/gpu.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gpu.js b/src/gpu.js index deee9ba1..b17cbefa 100644 --- a/src/gpu.js +++ b/src/gpu.js @@ -140,10 +140,7 @@ module.exports = class GPU { } if (!utils.isWebGlDrawBuffersSupported) { - this._runner = new CPURunner({ - canvas: this._canvas, - webGl: this._webGl - }); + this._runner = new CPURunner(settings); } const kernel = this.createKernel(fn, settings);