summaryrefslogtreecommitdiff
path: root/chroma/cuda/render.cu
diff options
context:
space:
mode:
Diffstat (limited to 'chroma/cuda/render.cu')
-rw-r--r--chroma/cuda/render.cu5
1 files changed, 1 insertions, 4 deletions
diff --git a/chroma/cuda/render.cu b/chroma/cuda/render.cu
index 6c282d6..07abf0f 100644
--- a/chroma/cuda/render.cu
+++ b/chroma/cuda/render.cu
@@ -91,12 +91,9 @@ render(int nthreads, float3 *_origin, float3 *_direction, Geometry *g,
Node node = get_node(g, i);
count++;
- if (node.kind == PADDING_NODE)
- break; // this node and rest of children are padding
-
if (intersect_node(neg_origin_inv_dir, inv_dir, g, node)) {
- if (node.kind == LEAF_NODE) {
+ if (node.nchild == 0) { /* leaf node */
// This node wraps a triangle
tri_count++;