mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-14 13:31:22 +00:00
Don't pass strings in raytrace-parallel example
Make sure to explicitly parse strings to numbers
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user