X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=bvh.h;h=637b55308cc4677140137664be3bf671e12421b3;hb=b9dedb4dd2a1e94ae76a3986716ee3c57e568213;hp=25be1e5fe0e152be57fef01d060c3a5af93393f5;hpb=d13f2700b1773551307685cc7c34c804ccd6d664;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/bvh.h b/bvh.h index 25be1e5..637b553 100644 --- 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 ];