clray

diff rt.cl @ 18:4b1604f9798a

debugging...
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 09 Aug 2010 05:38:51 +0100
parents 074a64b9d6bd
children 8baea9b66b50
line diff
     1.1 --- a/rt.cl	Mon Aug 09 05:03:17 2010 +0100
     1.2 +++ b/rt.cl	Mon Aug 09 05:38:51 2010 +0100
     1.3 @@ -35,7 +35,6 @@
     1.4  
     1.5  struct Ray {
     1.6  	float4 origin, dir;
     1.7 -	float energy, pad[3];
     1.8  };
     1.9  
    1.10  struct SurfPoint {
    1.11 @@ -79,6 +78,12 @@
    1.12  {
    1.13  	int idx = get_global_id(0);
    1.14  
    1.15 +	if(!idx) {
    1.16 +		for(int i=0; i<rinf->num_faces; i++) {
    1.17 +			outfaces[i] = faces[i];
    1.18 +		}
    1.19 +	}
    1.20 +
    1.21  	struct Scene scn;
    1.22  	scn.ambient = rinf->ambient;
    1.23  	scn.faces = faces;