mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-03 05:49:41 +03:00
arm64 : fix intptr_t size
This commit is contained in:
@@ -764,7 +764,7 @@ void DispInfo_BatchDecals( CDispInfo **pVisibleDisps, int nVisibleDisps )
|
||||
// There is only one group at a time.
|
||||
int iGroup = 0;
|
||||
|
||||
int iPool = g_aDispDecalSortPool.Alloc( true );
|
||||
intp iPool = g_aDispDecalSortPool.Alloc( true );
|
||||
g_aDispDecalSortPool[iPool] = decal.m_pDecal;
|
||||
|
||||
int iSortTree = decal.m_pDecal->m_iSortTree;
|
||||
@@ -773,7 +773,7 @@ void DispInfo_BatchDecals( CDispInfo **pVisibleDisps, int nVisibleDisps )
|
||||
DecalMaterialBucket_t &materialBucket = g_aDispDecalSortTrees[iSortTree].m_aDecalSortBuckets[iGroup][iTreeType].Element( iSortMaterial );
|
||||
if ( materialBucket.m_nCheckCount == g_nDispDecalSortCheckCount )
|
||||
{
|
||||
int iHead = materialBucket.m_iHead;
|
||||
intp iHead = materialBucket.m_iHead;
|
||||
g_aDispDecalSortPool.LinkBefore( iHead, iPool );
|
||||
}
|
||||
|
||||
@@ -844,7 +844,7 @@ void DispInfo_DrawDecalsGroup( int iGroup, int iTreeType )
|
||||
if ( materialBucketList.Element( iBucket ).m_nCheckCount != g_nDispDecalSortCheckCount )
|
||||
continue;
|
||||
|
||||
int iHead = materialBucketList.Element( iBucket ).m_iHead;
|
||||
intp iHead = materialBucketList.Element( iBucket ).m_iHead;
|
||||
if ( !g_aDispDecalSortPool.IsValidIndex( iHead ) )
|
||||
continue;
|
||||
|
||||
@@ -863,7 +863,7 @@ void DispInfo_DrawDecalsGroup( int iGroup, int iTreeType )
|
||||
bool bBatchInit = true;
|
||||
|
||||
int nCount;
|
||||
int iElement = iHead;
|
||||
intp iElement = iHead;
|
||||
while ( iElement != g_aDispDecalSortPool.InvalidIndex() )
|
||||
{
|
||||
decal_t *pDecal = g_aDispDecalSortPool.Element( iElement );
|
||||
@@ -1300,7 +1300,7 @@ int DispInfo_ComputeIndex( HDISPINFOARRAY hArray, IDispInfo* pInfo )
|
||||
if( !pArray )
|
||||
return NULL;
|
||||
|
||||
int iElement = ((int)pInfo - (int)(pArray->m_pDispInfos)) / sizeof(CDispInfo);
|
||||
intp iElement = ((intp)pInfo - (intp)(pArray->m_pDispInfos)) / sizeof(CDispInfo);
|
||||
|
||||
Assert( iElement >= 0 && iElement < pArray->m_nDispInfos );
|
||||
return iElement;
|
||||
|
||||
Reference in New Issue
Block a user