summaryrefslogtreecommitdiffstats
path: root/libdimension/raytrace.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-09-29 17:54:03 -0400
committerTavian Barnes <tavianator@gmail.com>2010-09-29 19:03:10 -0400
commit9666ad922524b617947590aed4c6fde5febab53a (patch)
treeb51c459670fac0f1d36b70e055f31ce1d641c4ef /libdimension/raytrace.c
parentcec47afae217cea36779d7dea4437b35dee63be2 (diff)
downloaddimension-9666ad922524b617947590aed4c6fde5febab53a.tar.xz
Make dmnsn_new_thread() bail out on errors.
Diffstat (limited to 'libdimension/raytrace.c')
-rw-r--r--libdimension/raytrace.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c
index 9822c8c..396c8b4 100644
--- a/libdimension/raytrace.c
+++ b/libdimension/raytrace.c
@@ -58,11 +58,7 @@ dmnsn_raytrace_scene_async(dmnsn_scene *scene)
payload->progress = progress;
payload->scene = scene;
- if (dmnsn_new_thread(progress, NULL, &dmnsn_raytrace_scene_thread, payload)
- != 0)
- {
- dmnsn_error(DMNSN_SEVERITY_HIGH, "Couldn't start worker thread.");
- }
+ dmnsn_new_thread(progress, NULL, &dmnsn_raytrace_scene_thread, payload);
return progress;
}