From 10e4a4eb02b50a5751e496d6661a0587a86f11b5 Mon Sep 17 00:00:00 2001 From: Morten Hustveit Date: Tue, 2 Dec 2014 21:54:15 -0500 Subject: main_glut.c: Enable threading by default --- main_glut.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'main_glut.c') 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; } } -- cgit v1.2.3