commit
[carveJwlIkooP6JGAAIwe30JlM.git] / bvh.h
diff --git a/bvh.h b/bvh.h
index 94ea69bdf91d95c8ea86b0f79a44c3a33b940848..23f8a564d54cd7ce1b7830457da97ce15ad790d7 100644 (file)
--- a/bvh.h
+++ b/bvh.h
@@ -167,7 +167,7 @@ VG_STATIC bh_tree *bh_create( void *lin_alloc, bh_system *system,
    totsize = sizeof(bh_tree) + sizeof(bh_node) * bh->node_count;
    bh = vg_linear_resize( lin_alloc, bh, totsize );
 
-   vg_success( "BVH done, size: %u/%u\n", bh->node_count, (item_count*2-1) );
+   vg_success( "BVH done, size: %u/%u\n", bh->node_count, (alloc_count*2-1) );
    return bh;
 }