summaryrefslogtreecommitdiff
path: root/ray.c
diff options
context:
space:
mode:
authorMorten Hustveit <morten.hustveit@gmail.com>2014-12-02 14:43:17 -0500
committerMorten Hustveit <morten.hustveit@gmail.com>2014-12-02 14:43:17 -0500
commit3d422f2b3d311f1be3658ff1f44d818a99561a66 (patch)
treed17dc97b62feb3ac73f87e810c6f1395541edb3a /ray.c
parent0ef8e84c082a80354b502b169b6c79fccffa4405 (diff)
Minor style changes
Diffstat (limited to 'ray.c')
-rw-r--r--ray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ray.c b/ray.c
index 018ace1..45597df 100644
--- a/ray.c
+++ b/ray.c
@@ -102,7 +102,6 @@ thread(void *arg) {
void
trace_scene(float time, unsigned char *buf, int threaded) {
-
objects[0].position[0] = 1.5 * cos(time);
objects[0].position[1] = 1.5 * sin(time);
objects[1].position[0] = 1.5 * cos(time + 1/3. * TAU);
@@ -110,6 +109,7 @@ trace_scene(float time, unsigned char *buf, int threaded) {
objects[3].position[0] = 1.5 * cos(time + 2/3. * TAU);
objects[3].position[1] = 1.5 * sin(time + 2/3. * TAU);
objects[2].position[2] = -3 + 2 * sin(time * 2);
+
if(threaded) {
pthread_attr_t attr;
pthread_attr_init(&attr);