From dcefff0e0ea23c944e07e5d5c8f18622c2e93b85 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Wed, 27 Aug 2008 23:37:33 +0000 Subject: [PATCH] stack variable 'bounds' needs to be 16-byte aligned for SSE --- src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp b/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp index 3b3a2ebb9..422d8a9de 100644 --- a/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp +++ b/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp @@ -320,7 +320,9 @@ return(m_paircache); // void btDbvtBroadphase::getBroadphaseAabb(btVector3& aabbMin,btVector3& aabbMax) const { -btDbvtVolume bounds; + + ATTRIBUTE_ALIGNED16(btDbvtVolume) bounds; + if(!m_sets[0].empty()) if(!m_sets[1].empty()) Merge( m_sets[0].m_root->volume, m_sets[1].m_root->volume,bounds);