experiments with params in AllBullet2Demos (quick hack for testing, will clean this up soon)

yet another workaround to make Intel GPU work with glDrawBuffers on Ubuntu
This commit is contained in:
Erwin Coumans (Google)
2014-07-08 16:42:57 -07:00
parent f89d70b895
commit 27b0e4d1e6
4 changed files with 120 additions and 28 deletions

View File

@@ -71,6 +71,10 @@ struct CommonRigidBodySetup : public CommonPhysicsSetup
//remove the rigidbodies from the dynamics world and delete them
int i;
for (i = m_dynamicsWorld->getNumConstraints() - 1; i >= 0; i--)
{
m_dynamicsWorld->removeConstraint(m_dynamicsWorld->getConstraint(i));
}
if (m_dynamicsWorld)
{