Fix typo making it rebuild every BLAS if level changes

This commit is contained in:
dpjudas 2024-10-21 00:52:33 +02:00
commit 8cbef52626

View file

@ -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);