summaryrefslogtreecommitdiff
path: root/src/intersect.cu
diff options
context:
space:
mode:
Diffstat (limited to 'src/intersect.cu')
-rw-r--r--src/intersect.cu7
1 files changed, 1 insertions, 6 deletions
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;
}