Don't pass strings in raytrace-parallel example

Make sure to explicitly parse strings to numbers
This commit is contained in:
Alex Crichton 2019-05-31 07:28:55 -07:00
parent b4c395bd6e
commit 81fbc642f4

View File

@ -116,6 +116,6 @@ function render(scene) {
rendering.stop();
rendering = null;
}
rendering = new State(scene.render(concurrency.value, pool, ctx));
rendering = new State(scene.render(parseInt(concurrency.value), pool, ctx));
pool = null; // previous call took ownership of `pool`, zero it out here too
}