Compile fixes for recent commits

This commit is contained in:
Antony Riakiotakis 2013-04-16 00:56:24 +00:00
parent d3a878688e
commit e93f00d73d
2 changed files with 3 additions and 2 deletions

@ -36,6 +36,7 @@
#include "kernel_projection.h"
#include "kernel_differential.h"
#include "kernel_object.h"
#include "kernel_random.h"
#include "kernel_bvh.h"
#include "kernel_triangle.h"
#include "kernel_curve.h"

@ -159,8 +159,8 @@ static float gaussRand(RNG *rng)
float length2;
do {
x = (float) (nextfr(-1, 1));
y = (float)(nextfr(-1, 1));
x = (float) (nextfr(rng, -1, 1));
y = (float)(nextfr(rng, -1, 1));
length2 = x * x + y * y;
} while (length2 >= 1 || length2 == 0);