mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-09 10:19:38 +00:00
arm64 : fix intptr_t size
This commit is contained in:
@@ -2244,7 +2244,7 @@ inline ShadowType_t CClientShadowMgr::GetActualShadowCastType( IClientRenderable
|
||||
class CShadowLeafEnum : public ISpatialLeafEnumerator
|
||||
{
|
||||
public:
|
||||
bool EnumerateLeaf( int leaf, int context )
|
||||
bool EnumerateLeaf( int leaf, intp context )
|
||||
{
|
||||
m_LeafList.AddToTail( leaf );
|
||||
return true;
|
||||
@@ -4217,7 +4217,7 @@ bool CShadowProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
|
||||
|
||||
void CShadowProxy::OnBind( void *pProxyData )
|
||||
{
|
||||
unsigned short clientShadowHandle = ( unsigned short )(int)pProxyData&0xffff;
|
||||
unsigned short clientShadowHandle = ( unsigned short )(intp)pProxyData&0xffff;
|
||||
ITexture* pTex = s_ClientShadowMgr.GetShadowTexture( clientShadowHandle );
|
||||
m_BaseTextureVar->SetTextureValue( pTex );
|
||||
if ( ToolsEnabled() )
|
||||
@@ -4301,7 +4301,7 @@ bool CShadowModelProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
|
||||
|
||||
void CShadowModelProxy::OnBind( void *pProxyData )
|
||||
{
|
||||
unsigned short clientShadowHandle = ( unsigned short )((int)pProxyData&0xffff);
|
||||
unsigned short clientShadowHandle = ( unsigned short )((intp)pProxyData&0xffff);
|
||||
ITexture* pTex = s_ClientShadowMgr.GetShadowTexture( clientShadowHandle );
|
||||
m_BaseTextureVar->SetTextureValue( pTex );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user