implementing build_bvh_sah
[cyberay] / src / bvh.h
index 03bc726..9288fdb 100644 (file)
--- a/src/bvh.h
+++ b/src/bvh.h
@@ -7,7 +7,7 @@ struct bvhnode {
        struct aabox aabb;
        int axis;
 
-       struct triangle *faces;
+       struct triangle **faces;
        int num_faces, max_faces;
 
        struct bvhnode *left, *right;