Skip to content

Commit 81fbc64

Browse files
committed
Don't pass strings in raytrace-parallel example
Make sure to explicitly parse strings to numbers
1 parent b4c395b commit 81fbc64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/raytrace-parallel/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@ function render(scene) {
116116
rendering.stop();
117117
rendering = null;
118118
}
119-
rendering = new State(scene.render(concurrency.value, pool, ctx));
119+
rendering = new State(scene.render(parseInt(concurrency.value), pool, ctx));
120120
pool = null; // previous call took ownership of `pool`, zero it out here too
121121
}

0 commit comments

Comments
 (0)