mirror of
https://github.com/celisej567/source-engine.git
synced 2026-02-25 06:32:57 +03:00
arm64 : fix intptr_t size
This commit is contained in:
@@ -38,7 +38,7 @@ COcclusionQueryMgr::COcclusionQueryMgr()
|
||||
OcclusionQueryObjectHandle_t COcclusionQueryMgr::CreateOcclusionQueryObject( )
|
||||
{
|
||||
m_Mutex.Lock();
|
||||
int h = m_OcclusionQueryObjects.AddToTail();
|
||||
intp h = m_OcclusionQueryObjects.AddToTail();
|
||||
m_Mutex.Unlock();
|
||||
return (OcclusionQueryObjectHandle_t)h;
|
||||
}
|
||||
@@ -47,7 +47,7 @@ void COcclusionQueryMgr::OnCreateOcclusionQueryObject( OcclusionQueryObjectHandl
|
||||
{
|
||||
for ( int i = 0; i < COUNT_OCCLUSION_QUERY_STACK; i++)
|
||||
{
|
||||
m_OcclusionQueryObjects[(int)h].m_QueryHandle[i] = g_pShaderAPI->CreateOcclusionQueryObject( );
|
||||
m_OcclusionQueryObjects[(intp)h].m_QueryHandle[i] = g_pShaderAPI->CreateOcclusionQueryObject( );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ void COcclusionQueryMgr::OnCreateOcclusionQueryObject( OcclusionQueryObjectHandl
|
||||
void COcclusionQueryMgr::FlushQuery( OcclusionQueryObjectHandle_t hOcclusionQuery, int nIndex )
|
||||
{
|
||||
// Flush out any previous queries
|
||||
int h = (int)hOcclusionQuery;
|
||||
intp h = (intp)hOcclusionQuery;
|
||||
if ( m_OcclusionQueryObjects[h].m_bHasBeenIssued[nIndex] )
|
||||
{
|
||||
ShaderAPIOcclusionQuery_t hQuery = m_OcclusionQueryObjects[h].m_QueryHandle[nIndex];
|
||||
@@ -68,7 +68,7 @@ void COcclusionQueryMgr::FlushQuery( OcclusionQueryObjectHandle_t hOcclusionQuer
|
||||
|
||||
void COcclusionQueryMgr::DestroyOcclusionQueryObject( OcclusionQueryObjectHandle_t hOcclusionQuery )
|
||||
{
|
||||
int h = (int)hOcclusionQuery;
|
||||
intp h = (intp)hOcclusionQuery;
|
||||
Assert( m_OcclusionQueryObjects.IsValidIndex( h ) );
|
||||
if ( m_OcclusionQueryObjects.IsValidIndex( h ) )
|
||||
{
|
||||
@@ -133,7 +133,7 @@ void COcclusionQueryMgr::FreeOcclusionQueryObjects( void )
|
||||
//-----------------------------------------------------------------------------
|
||||
void COcclusionQueryMgr::ResetOcclusionQueryObject( OcclusionQueryObjectHandle_t hOcclusionQuery )
|
||||
{
|
||||
int h = (int)hOcclusionQuery;
|
||||
intp h = (intp)hOcclusionQuery;
|
||||
Assert( m_OcclusionQueryObjects.IsValidIndex( h ) );
|
||||
if ( m_OcclusionQueryObjects.IsValidIndex( h ) )
|
||||
{
|
||||
@@ -154,7 +154,7 @@ void COcclusionQueryMgr::ResetOcclusionQueryObject( OcclusionQueryObjectHandle_t
|
||||
//-----------------------------------------------------------------------------
|
||||
void COcclusionQueryMgr::BeginOcclusionQueryDrawing( OcclusionQueryObjectHandle_t hOcclusionQuery )
|
||||
{
|
||||
int h = (int)hOcclusionQuery;
|
||||
intp h = (intp)hOcclusionQuery;
|
||||
Assert( m_OcclusionQueryObjects.IsValidIndex( h ) );
|
||||
if ( m_OcclusionQueryObjects.IsValidIndex( h ) )
|
||||
{
|
||||
@@ -194,7 +194,7 @@ void COcclusionQueryMgr::BeginOcclusionQueryDrawing( OcclusionQueryObjectHandle_
|
||||
|
||||
void COcclusionQueryMgr::EndOcclusionQueryDrawing( OcclusionQueryObjectHandle_t hOcclusionQuery )
|
||||
{
|
||||
int h = (int)hOcclusionQuery;
|
||||
intp h = (intp)hOcclusionQuery;
|
||||
Assert( m_OcclusionQueryObjects.IsValidIndex( h ) );
|
||||
if ( m_OcclusionQueryObjects.IsValidIndex( h ) )
|
||||
{
|
||||
@@ -220,7 +220,7 @@ void COcclusionQueryMgr::EndOcclusionQueryDrawing( OcclusionQueryObjectHandle_t
|
||||
//-----------------------------------------------------------------------------
|
||||
void COcclusionQueryMgr::OcclusionQuery_IssueNumPixelsRenderedQuery( OcclusionQueryObjectHandle_t hOcclusionQuery )
|
||||
{
|
||||
int h = (int)hOcclusionQuery;
|
||||
intp h = (intp)hOcclusionQuery;
|
||||
Assert( m_OcclusionQueryObjects.IsValidIndex( h ) );
|
||||
if ( m_OcclusionQueryObjects.IsValidIndex( h ) )
|
||||
{
|
||||
@@ -253,6 +253,6 @@ int COcclusionQueryMgr::OcclusionQuery_GetNumPixelsRendered( OcclusionQueryObjec
|
||||
OcclusionQuery_IssueNumPixelsRenderedQuery( h );
|
||||
}
|
||||
|
||||
int nPixels = m_OcclusionQueryObjects[(int)h].m_LastResult;
|
||||
int nPixels = m_OcclusionQueryObjects[(intp)h].m_LastResult;
|
||||
return nPixels;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user