dont remember
[carveJwlIkooP6JGAAIwe30JlM.git] / bvh.h
diff --git a/bvh.h b/bvh.h
index 25be1e5fe0e152be57fef01d060c3a5af93393f5..637b55308cc4677140137664be3bf671e12421b3 100644 (file)
--- a/bvh.h
+++ b/bvh.h
@@ -156,6 +156,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 ];