diff --git a/src/common/rendering/hwrenderer/data/hw_collision.cpp b/src/common/rendering/hwrenderer/data/hw_collision.cpp index bfb98a22a..341490ddb 100644 --- a/src/common/rendering/hwrenderer/data/hw_collision.cpp +++ b/src/common/rendering/hwrenderer/data/hw_collision.cpp @@ -124,7 +124,10 @@ void CPUAccelStruct::Update() std::unique_ptr CPUAccelStruct::CreateBLAS(int indexStart, int indexCount) { - return std::make_unique(Mesh->Mesh.Vertices.Data(), Mesh->Mesh.Vertices.Size(), &Mesh->Mesh.Indexes[indexStart], indexCount, Scratch); + auto accelstruct = std::make_unique(Mesh->Mesh.Vertices.Data(), Mesh->Mesh.Vertices.Size(), &Mesh->Mesh.Indexes[indexStart], indexCount, Scratch); + if (accelstruct->GetRoot() == -1) + return {}; + return accelstruct; } static FVector3 SwapYZ(const FVector3& v)