disable the OpenCL asserts by default (BT_SUPPRESS_OPENCL_ASSERTS), and re-enable the shader initialzation in bool btOpenCLSoftBodySolver::checkInitialized()

This commit is contained in:
erwin.coumans
2011-11-14 23:12:33 +00:00
parent 0d1fcf7c48
commit 0ccc82a2ab

View File

@@ -24,7 +24,7 @@ subject to the following restrictions:
#include "LinearMath/btQuickprof.h" #include "LinearMath/btQuickprof.h"
#include <limits.h> #include <limits.h>
//#define BT_SUPPRESS_OPENCL_ASSERTS #define BT_SUPPRESS_OPENCL_ASSERTS
#ifdef USE_MINICL #ifdef USE_MINICL
#include "MiniCL/cl.h" #include "MiniCL/cl.h"
@@ -1679,9 +1679,9 @@ int btOpenCLSoftBodySolver::findSoftBodyIndex( const btSoftBody* const softBody
bool btOpenCLSoftBodySolver::checkInitialized() bool btOpenCLSoftBodySolver::checkInitialized()
{ {
// if( !m_shadersInitialized ) if( !m_shadersInitialized )
// if( buildShaders() ) if( buildShaders() )
// m_shadersInitialized = true; m_shadersInitialized = true;
return m_shadersInitialized; return m_shadersInitialized;
} }