unknown issue with dma size, need to investigate deeper (had to increase target buffer size to avoid crashes)

This commit is contained in:
ejcoumans 2007-06-13 23:18:04 +00:00
parent 0fb0b6056c
commit f4d31a2dd8
2 changed files with 4 additions and 4 deletions

View File

@ -220,8 +220,8 @@ void ConcaveDemo::initPhysics()
{
for (int i=0;i<10;i++)
{
//btCollisionShape* boxShape = new btBoxShape(btVector3(1,1,1));
btCollisionShape* boxShape = new btSphereShape(1.f);
btCollisionShape* boxShape = new btBoxShape(btVector3(1,1,1));
//btCollisionShape* boxShape = new btSphereShape(1.f);
startTransform.setOrigin(btVector3(2*i,10,1));
localCreateRigidBody(1, startTransform,boxShape);
}

View File

@ -57,8 +57,8 @@ struct CollisionTask_LocalStoreMemory
static const int maxShapeSize = MAX_SHAPE_SIZE;//todo: make some compile-time assert that this is value is larger then sizeof(btCollisionShape)
ATTRIBUTE_ALIGNED16(char gCollisionShape0[maxShapeSize]);
ATTRIBUTE_ALIGNED16(char gCollisionShape1[maxShapeSize]);
ATTRIBUTE_ALIGNED16(char gCollisionShape0[MAX_SHAPE_SIZE+1]);//todo: check out why leaving out '+1' causes troubles
ATTRIBUTE_ALIGNED16(char gCollisionShape1[MAX_SHAPE_SIZE+1]);
ATTRIBUTE_ALIGNED16(int spuIndices[16]);