mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-05-30 06:01:21 +00:00
Don't pass strings in raytrace-parallel example
Make sure to explicitly parse strings to numbers
This commit is contained in:
parent
b4c395bd6e
commit
81fbc642f4
@ -116,6 +116,6 @@ function render(scene) {
|
|||||||
rendering.stop();
|
rendering.stop();
|
||||||
rendering = null;
|
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
|
pool = null; // previous call took ownership of `pool`, zero it out here too
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user