diff --git a/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp b/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp index 69e9ee748..7b39dbdc0 100644 --- a/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp +++ b/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp @@ -247,7 +247,9 @@ void btDbvtBroadphase::rayTest(const btVector3& rayFrom, const btVector3& rayTo, // instead of just a local. int threadIndex = btGetCurrentThreadIndex(); btAlignedObjectArray localStack; - if (threadIndex < m_rayTestStacks.size()) + //todo(erwincoumans, "why do we get tsan issue here?") + if (0)//threadIndex < m_rayTestStacks.size()) + //if (threadIndex < m_rayTestStacks.size()) { // use per-thread preallocated stack if possible to avoid dynamic allocations stack = &m_rayTestStacks[threadIndex];