summaryrefslogtreecommitdiff
path: root/chroma/cuda/render.cu
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2012-02-15 11:07:52 -0500
committertlatorre <tlatorre@uchicago.edu>2021-05-09 08:42:38 -0700
commit81bcdf9264935195988e171d1339d9a47df139f5 (patch)
tree08a516ff8ebd86f25be17340d87bcf599e837d00 /chroma/cuda/render.cu
parent9e16751fcd575c268fd1df03c31b762475c5b480 (diff)
downloadchroma-81bcdf9264935195988e171d1339d9a47df139f5.tar.gz
chroma-81bcdf9264935195988e171d1339d9a47df139f5.tar.bz2
chroma-81bcdf9264935195988e171d1339d9a47df139f5.zip
Bugfixes to BVH traversal and generation code.
Diffstat (limited to 'chroma/cuda/render.cu')
-rw-r--r--chroma/cuda/render.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/chroma/cuda/render.cu b/chroma/cuda/render.cu
index eda9028..6c282d6 100644
--- a/chroma/cuda/render.cu
+++ b/chroma/cuda/render.cu
@@ -84,7 +84,7 @@ render(int nthreads, float3 *_origin, float3 *_direction, Geometry *g,
while (curr >= 0) {
unsigned int first_child = child_ptr_stack[curr];
- unsigned int nchild = child_ptr_stack[curr];
+ unsigned int nchild = nchild_ptr_stack[curr];
curr--;
for (unsigned int i=first_child; i < first_child + nchild; i++) {