Skip to content

Commit

Permalink
Fix typo making it rebuild every BLAS if level changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Oct 20, 2024
1 parent 1073bcf commit 8cbef52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/rendering/hwrenderer/data/hw_collision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8cbef52

Please sign in to comment.