avoid out-of-bounds issue for some OpenCL kernel, hanging Mac OSX (should not happen, need to check why)

split kernel for debugging
This commit is contained in:
Erwin Coumans
2013-12-17 10:44:41 -08:00
parent 7b55ffd237
commit 7e86932edf
5 changed files with 1548 additions and 233 deletions

View File

@@ -175,8 +175,8 @@ bool b3FindSeparatingAxisEdgeEdge( const b3ConvexPolyhedronData* hullA, __global
b3Project(hullB,posB,ornB,&crossje,verticesB, &Min1, &Max1);
if(Max0<Min1 || Max1<Min0)
result = false;
return false;
float d0 = Max0 - Min1;
float d1 = Max1 - Min0;
dist = d0<d1 ? d0:d1;