mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
arm64 : fix mempool align
This commit is contained in:
+2
-2
@@ -121,7 +121,7 @@ inline unsigned char* UpdateRoutesExplicit_Template( DTStack *pStack, ProxyCalle
|
||||
// Early out.
|
||||
unsigned short iPropProxyIndex = pStack->m_pPrecalc->m_PropProxyIndices[pStack->m_iCurProp];
|
||||
unsigned char **pTest = &pStack->m_pProxies[iPropProxyIndex];
|
||||
if ( *pTest != (unsigned char*)0xFFFFFFFF )
|
||||
if ( *pTest != (unsigned char*)-1 )
|
||||
return *pTest;
|
||||
|
||||
// Ok.. setup this proxy.
|
||||
@@ -133,7 +133,7 @@ inline unsigned char* UpdateRoutesExplicit_Template( DTStack *pStack, ProxyCalle
|
||||
CSendTablePrecalc::CProxyPathEntry *pEntry = &pStack->m_pPrecalc->m_ProxyPathEntries[proxyPath.m_iFirstEntry + i];
|
||||
int iProxy = pEntry->m_iProxy;
|
||||
|
||||
if ( pStack->m_pProxies[iProxy] == (unsigned char*)0xFFFFFFFF )
|
||||
if ( pStack->m_pProxies[iProxy] == (unsigned char*)-1 )
|
||||
{
|
||||
pStack->m_pProxies[iProxy] = ProxyCaller::CallProxy( pStack, pStructBase, pEntry->m_iDatatableProp );
|
||||
if ( !pStack->m_pProxies[iProxy] )
|
||||
|
||||
@@ -1831,7 +1831,7 @@ void *Hunk_AllocNameAlignedClear_( int size, int alignment, const char *pHunkNam
|
||||
Assert(IsPowerOfTwo(alignment));
|
||||
void *pMem = Hunk_AllocName( alignment + size, pHunkName );
|
||||
memset( pMem, 0, size + alignment );
|
||||
pMem = (void *)( ( ( ( unsigned long )pMem ) + (alignment-1) ) & ~(alignment-1) );
|
||||
pMem = (void *)( ( ( ( uintp )pMem ) + (alignment-1) ) & ~(alignment-1) );
|
||||
|
||||
return pMem;
|
||||
}
|
||||
|
||||
+1
-1
@@ -2304,7 +2304,7 @@ inline void R_DrawDecalMeshList( DecalMeshList_t &meshList )
|
||||
}
|
||||
|
||||
#define DECALMARKERS_SWITCHSORTTREE ((decal_t *)0x00000000)
|
||||
#define DECALMARKERS_SWITCHBUCKET ((decal_t *)0xFFFFFFFF)
|
||||
#define DECALMARKERS_SWITCHBUCKET ((decal_t *)-1)
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user