From 8cbef52626e19f2c720ad739fb2baedafba7e9f6 Mon Sep 17 00:00:00 2001 From: dpjudas Date: Mon, 21 Oct 2024 00:52:33 +0200 Subject: [PATCH] Fix typo making it rebuild every BLAS if level changes --- src/common/rendering/hwrenderer/data/hw_collision.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/rendering/hwrenderer/data/hw_collision.cpp b/src/common/rendering/hwrenderer/data/hw_collision.cpp index 8ebc247d4..d6b676f56 100644 --- a/src/common/rendering/hwrenderer/data/hw_collision.cpp +++ b/src/common/rendering/hwrenderer/data/hw_collision.cpp @@ -104,7 +104,7 @@ void CPUAccelStruct::Update() for (int instance = 0; instance < InstanceCount; instance++) { - if (needsUpdate) + if (needsUpdate[instance]) { int indexStart = instance * IndexesPerBLAS; int indexEnd = std::min(indexStart + IndexesPerBLAS, Mesh->Mesh.IndexCount);