 	path.isHit = isHit;
 
 	hitbools[idx] = isHit ? 1 : 0;
+#endif
 }
 
 template <bool isFirstBounce>

	// Accumulate value, so do not reset.
	//path.contrib = aten::vec3(0);
}

__global__ void hitTest(
	Path* paths,

			depth = 0;

			while (depth < maxDepth) {
#ifdef ENABLE_PERSISTENT_THREAD
				hitTest << <NUM_BLOCK, dim3(WARP_SIZE, NUM_WARP_PER_BLOCK) >> > (
#else
				hitTest << <blockPerGrid_HitTest, threadPerBlock_HitTest >> > (
#endif
				//hitTest << <1, 1 >> > (
					paths.ptr(),
					isects.ptr(),
