fixed recursive build script
[carveJwlIkooP6JGAAIwe30JlM.git] / bvh.h
diff --git a/bvh.h b/bvh.h
index 25be1e5fe0e152be57fef01d060c3a5af93393f5..c18bb3052d9ffa532231ae9bcfcba797dbad4814 100644 (file)
--- a/bvh.h
+++ b/bvh.h
@@ -1,3 +1,7 @@
+/*
+ * Copyright (C) 2021-2022 Mt.ZERO Software, Harry Godden - All Rights Reserved
+ */
+
 #ifndef BVH_H
 #define BVH_H
 #include "common.h"
@@ -156,6 +160,11 @@ static void bh_create( bh_tree *bh, bh_system *sys, void *user, u32 item_count )
 #endif
 }
 
+static void bh_free( bh_tree *bh )
+{
+   vg_free( bh->nodes );
+}
+
 static void bh_debug_node( bh_tree *bh, u32 inode, v3f pos, u32 colour )
 {
    bh_node *node = &bh->nodes[ inode ];