added fracture scene .bullet file (doesn't work well yet)

added tetrahedral mesh test scene
expose b3Config as member variable for demos.
move a 'glFlush' out of the innerloop (render performance)
SSE -> SSE2 in premake
fix crash in broadphase (when no aabb's exist)
This commit is contained in:
erwin coumans
2013-07-30 12:37:16 -07:00
parent 3ccc9680a1
commit 2793a174c6
12 changed files with 309 additions and 28 deletions

View File

@@ -1051,11 +1051,11 @@ void b3GpuSapBroadphase::calculateOverlappingPairs(int maxPairs)
}
}
if (m_prefixScanFloat4)
int numSmallAabbs = m_smallAabbsGPU.size();
if (m_prefixScanFloat4 && numSmallAabbs)
{
B3_PROFILE("GPU compute best variance axis");
int numSmallAabbs = m_smallAabbsGPU.size();
if (m_dst.size()!=(numSmallAabbs+1))
{
m_dst.resize(numSmallAabbs+1);
@@ -1133,7 +1133,7 @@ void b3GpuSapBroadphase::calculateOverlappingPairs(int maxPairs)
int numSmallAabbs = m_smallAabbsGPU.size();
m_gpuSmallSortData.resize(numSmallAabbs);
int numLargeAabbs = m_smallAabbsGPU.size();