 		// y : primid
 		// zw : bary centroid
 
-		int objid = __float_as_int(data.x);
-		int primid = __float_as_int(data.y);
+		objid = __float_as_int(data.x);
+		primid = __float_as_int(data.y);
 
 		isects[idx].objid = objid;
 		isects[idx].primid = primid;


#if 0
	printf("[%d]%f, %f, %f\n", stepCount, sceneZMax, rayZMin, rayZMax);
	printf("(%s)%d, %d\n", isect ? "true" : "false", (int)hitPixel.x, (int)hitPixel.x);
	printf("=======\n");
#endif


	float stepDir = delta.x < 0.0f ? -1.0f : 0.0f;
	stepDir = delta.x > 0.0f ? 1.0f : delta.x;

#if 0
	printf("delta %f, %f\n", delta.x, delta.y);
	printf("stepDir %f\n", stepDir);
	printf("permute %s\n", permute ? "true" : "false");
#endif

	float invdx = stepDir / delta.x;

	// Track the derivatives of Q and k.
