From 9dbb1120a31b11f96bb6c44caa92613c41d9846e Mon Sep 17 00:00:00 2001 From: Rui Date: Mon, 7 Oct 2019 21:59:12 +0800 Subject: [PATCH] Update bvh2.h --- RadeonRays/src/accelerator/bvh2.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RadeonRays/src/accelerator/bvh2.h b/RadeonRays/src/accelerator/bvh2.h index a80b580a..acd10298 100644 --- a/RadeonRays/src/accelerator/bvh2.h +++ b/RadeonRays/src/accelerator/bvh2.h @@ -56,6 +56,11 @@ namespace RadeonRays , m_nodecount(0) { } + + ~Bvh2() + { + this->Clear(); + } // Build function template