From bcaef46bb56feb2f92c4feae1bff9e041a4f84cf Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Mon, 9 May 2011 11:59:25 -0400 Subject: use pixel pointer instead of pixel array --- src/intersect.cu | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/intersect.cu') diff --git a/src/intersect.cu b/src/intersect.cu index aa4f732..1c157dc 100644 --- a/src/intersect.cu +++ b/src/intersect.cu @@ -1,10 +1,5 @@ //-*-c-*- -__device__ float3 make_float3(const float4 &a) -{ - return make_float3(a.x, a.y, a.z); -} - __device__ Matrix inv(const Matrix&m, float& determinant) { determinant = det(m); @@ -124,7 +119,7 @@ __global__ void intersect_triangle_mesh(int max_idx, float3 *xarr, float3 *parr, } if (!hit) - pixelarr[idx] = 0; + *pixel = 0; } -- cgit