diff options
Diffstat (limited to 'src/cl/spirt.cl')
-rw-r--r-- | src/cl/spirt.cl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl/spirt.cl b/src/cl/spirt.cl index 136fd81..9b77919 100644 --- a/src/cl/spirt.cl +++ b/src/cl/spirt.cl @@ -103,7 +103,7 @@ ray_colour(__global float *const canvas, __global const float3 *const rays) i = get_global_id(0); j = get_global_id(1); - ray_idx = (w * j + i) * 2; + ray_idx = 2 * (w * j + i); ray.orig = rays[ray_idx]; ray.dir = rays[ray_idx + 1]; |