fix issue (apparently closestFaceA/B can be -1, need to figure out how that can ever happen (it shouldn’t)

This commit is contained in:
Erwin Coumans
2013-12-17 16:50:50 -08:00
parent 7964f2d8c1
commit 7bde13be62
4 changed files with 18 additions and 8 deletions

View File

@@ -1642,7 +1642,7 @@ static const char* satKernelsCL= \
" int numWorldVertsB1= 0;\n"
" \n"
" \n"
" int closestFaceB=-1;\n"
" int closestFaceB=0;\n"
" float dmax = -FLT_MAX;\n"
" \n"
" {\n"
@@ -1676,7 +1676,7 @@ static const char* satKernelsCL= \
" }\n"
" }\n"
" \n"
" int closestFaceA=-1;\n"
" int closestFaceA=0;\n"
" {\n"
" float dmin = FLT_MAX;\n"
" for(int face=0;face<hullA->m_numFaces;face++)\n"