From 0ccc82a2abc8084a5b9310555c50934ad1e5cf3a Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Mon, 14 Nov 2011 23:12:33 +0000 Subject: [PATCH] disable the OpenCL asserts by default (BT_SUPPRESS_OPENCL_ASSERTS), and re-enable the shader initialzation in bool btOpenCLSoftBodySolver::checkInitialized() --- .../GpuSoftBodySolvers/OpenCL/btSoftBodySolver_OpenCL.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolver_OpenCL.cpp b/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolver_OpenCL.cpp index d43b9517e..7ff5c8de1 100644 --- a/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolver_OpenCL.cpp +++ b/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolver_OpenCL.cpp @@ -24,7 +24,7 @@ subject to the following restrictions: #include "LinearMath/btQuickprof.h" #include -//#define BT_SUPPRESS_OPENCL_ASSERTS +#define BT_SUPPRESS_OPENCL_ASSERTS #ifdef USE_MINICL #include "MiniCL/cl.h" @@ -1679,9 +1679,9 @@ int btOpenCLSoftBodySolver::findSoftBodyIndex( const btSoftBody* const softBody bool btOpenCLSoftBodySolver::checkInitialized() { -// if( !m_shadersInitialized ) -// if( buildShaders() ) -// m_shadersInitialized = true; + if( !m_shadersInitialized ) + if( buildShaders() ) + m_shadersInitialized = true; return m_shadersInitialized; }