summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chroma/cuda/photon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chroma/cuda/photon.h b/chroma/cuda/photon.h
index 00aee95..7c5c788 100644
--- a/chroma/cuda/photon.h
+++ b/chroma/cuda/photon.h
@@ -284,7 +284,7 @@ int propagate_to_boundary(Photon &p, State &s, curandState &rng,
} // propagate_to_boundary
-__device__ void
+__noinline__ __device__ void
propagate_at_boundary(Photon &p, State &s, curandState &rng)
{
float incident_angle = get_theta(s.surface_normal,-p.direction);