 		// 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;

	float4 PQk = make_float4(P0.x, P0.y, Q0.z, k0);
	float4 dPQk = make_float4(dP.x, dP.y, dQ.z, dk);
	aten::vec3 Q = Q0;

	static const int maxSteps = 50;


	cudaTextureObject_t vtxPos,
	cudaTextureObject_t vtxNml)
{
	auto ix = blockIdx.x * blockDim.x + threadIdx.x;
	auto iy = blockIdx.y * blockDim.y + threadIdx.y;
	//int ix = 134;
	//int iy = 512 - 374;

	if (ix >= width && iy >= height) {
		return;
