 	real t = AT_MATH_INF;
 
 	cudaTextureObject_t node = ctxt->nodes[0];
-
-#ifdef ENABLE_PLANE_LOOP_BVH
 	aten::ray transformedRay = r;
 
 	int toplayerHit = -1;


		bool isHit = false;

		if (attrib.x >= 0) {
			// Leaf.
			const auto* s = &ctxt->shapes[(int)attrib.x];

		else {
			nodeid = (int)node1.w;
		}
#endif
	}

	return (isect->objid >= 0);
}
