branch | pyrit |
changeset 100 | c005054bf4c1 |
parent 95 | ca7d4c665531 |
--- a/src/raytracer.cc Sun May 31 16:53:05 2009 +0200 +++ b/src/raytracer.cc Sun May 31 23:06:03 2009 +0200 @@ -27,6 +27,7 @@ #include <pthread.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <assert.h> #include "raytracer.h" @@ -478,7 +479,7 @@ for (;;) { my_count = 0; - while ( more_samples = sampler->nextSample(&sample_queue[my_pos++]) ) + while ( (more_samples = sampler->nextSample(&sample_queue[my_pos++])) != 0 ) { my_count++; if (my_pos >= sample_queue_size)