clray

diff src/scene.cc @ 31:92786fc3317e

yey! *seems* to work now
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Aug 2010 00:50:47 +0100
parents 04803c702014
children 4cf4919c3812
line diff
     1.1 --- a/src/scene.cc	Sat Aug 21 23:57:19 2010 +0100
     1.2 +++ b/src/scene.cc	Sun Aug 22 00:50:47 2010 +0100
     1.3 @@ -472,10 +472,12 @@
     1.4  
     1.5  	if(node->left) {
     1.6  		assert(node->right);
     1.7 +		assert(!dest->num_faces);
     1.8 +
     1.9 +		dest->num_faces = -1;
    1.10 +
    1.11  		kdtree_gpu_flatten(kdbuf, idx * 2, node->left, facebuf);
    1.12  		kdtree_gpu_flatten(kdbuf, idx * 2 + 1, node->right, facebuf);
    1.13 -	} else {
    1.14 -		dest->num_faces = -1;
    1.15  	}
    1.16  }
    1.17