diff options
author | Anthony LaTorre <telatorre@gmail.com> | 2011-05-09 11:59:25 -0400 |
---|---|---|
committer | Anthony LaTorre <telatorre@gmail.com> | 2011-05-09 11:59:25 -0400 |
commit | bcaef46bb56feb2f92c4feae1bff9e041a4f84cf (patch) | |
tree | 9e6fdfd855b497cf4bce2aa52bc60ed875f10c10 /src | |
parent | 4d3bf194aa395e818fc67230b219f41e454c435f (diff) | |
download | chroma-bcaef46bb56feb2f92c4feae1bff9e041a4f84cf.tar.gz chroma-bcaef46bb56feb2f92c4feae1bff9e041a4f84cf.tar.bz2 chroma-bcaef46bb56feb2f92c4feae1bff9e041a4f84cf.zip |
use pixel pointer instead of pixel array
Diffstat (limited to 'src')
-rw-r--r-- | src/intersect.cu | 7 |
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; } |