remove the 'exit' calls from the OpenCL soft body solver. Use the solver->checkInitialized() method, after solver->optimize() to see if the kernels build OK.

This commit is contained in:
erwin.coumans
2011-06-30 00:23:42 +00:00
parent 4cc502b24a
commit 251bb4e727
4 changed files with 262 additions and 230 deletions

View File

@@ -495,6 +495,12 @@ void initBullet(void)
g_solver->optimize( m_dynamicsWorld->getSoftBodyArray() );
if (!g_solver->checkInitialized())
{
printf("OpenCL kernel initialization ?failed\n");
exit(0);
}
}