summaryrefslogtreecommitdiff
path: root/src/rototiller.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rototiller.c')
-rw-r--r--src/rototiller.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rototiller.c b/src/rototiller.c
index 74ba006..a5d0927 100644
--- a/src/rototiller.c
+++ b/src/rototiller.c
@@ -416,13 +416,13 @@ int main(int argc, const char *argv[])
exit_if(!fps_setup(),
"unable to setup fps counter");
- exit_if(rototiller.module->create_context &&
- !(rototiller.module_context = rototiller.module->create_context()),
- "unable to create module context");
-
pexit_if(!(rototiller.threads = threads_create()),
"unable to create rendering threads");
+ exit_if(rototiller.module->create_context &&
+ !(rototiller.module_context = rototiller.module->create_context(threads_num_threads(rototiller.threads))),
+ "unable to create module context");
+
pexit_if(pthread_create(&rototiller.thread, NULL, rototiller_thread, &rototiller) != 0,
"unable to create dispatch thread");
© All Rights Reserved