diff options
author | Morten Hustveit <morten.hustveit@gmail.com> | 2014-12-02 21:54:15 -0500 |
---|---|---|
committer | Morten Hustveit <morten.hustveit@gmail.com> | 2014-12-02 21:54:15 -0500 |
commit | 10e4a4eb02b50a5751e496d6661a0587a86f11b5 (patch) | |
tree | 8b5fd7e761b9bd18a8233c56976f573a3ec600d2 /main_glut.c | |
parent | 128778e557dd665db36f2ac5fe3d21af22d32c50 (diff) |
main_glut.c: Enable threading by default
Diffstat (limited to 'main_glut.c')
-rw-r--r-- | main_glut.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/main_glut.c b/main_glut.c index ed4eee5..1717898 100644 --- a/main_glut.c +++ b/main_glut.c @@ -4,7 +4,7 @@ #include "ray.h" -static int threaded; +static int threaded = 1; static int viewport_width, viewport_height; static int @@ -54,11 +54,9 @@ keyboard(unsigned char key, int x, int y) { case 27: exit(EXIT_SUCCESS); break; + case 't': - if(threaded) - threaded = 0; - else - threaded = 1; + threaded = !threaded; break; } } |