mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 06:00:12 +00:00
use int instead of void to avoid 64bit error
This commit is contained in:
parent
415c6cd24d
commit
01fbe80f8f
@ -1067,7 +1067,7 @@ b3Scalar b3GpuPgsJacobiSolver::solveGroupCacheFriendlyFinish(b3OpenCLArray<b3Rig
|
||||
for (int i=0;i<numRows;i++)
|
||||
{
|
||||
int rowIndex =constraintRowOffset+i;
|
||||
int orgConstraintIndex = (int)m_gpuData->m_cpuConstraintRows[rowIndex].m_originalContactPoint;
|
||||
int orgConstraintIndex = m_gpuData->m_cpuConstraintRows[rowIndex].m_originalConstraintIndex;
|
||||
float breakingThreshold = m_gpuData->m_cpuConstraints[orgConstraintIndex].m_breakingImpulseThreshold;
|
||||
// printf("rows[%d].m_appliedImpulse=%f\n",rowIndex,rows[rowIndex].m_appliedImpulse);
|
||||
if (b3Fabs((m_gpuData->m_cpuConstraintRows[rowIndex].m_appliedImpulse) >= breakingThreshold))
|
||||
|
@ -56,6 +56,7 @@ B3_ATTRIBUTE_ALIGNED16 (struct) b3GpuSolverConstraint
|
||||
union
|
||||
{
|
||||
void* m_originalContactPoint;
|
||||
int m_originalConstraintIndex;
|
||||
b3Scalar m_unusedPadding4;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user