mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
arm64 : intp fixes
This commit is contained in:
@@ -929,7 +929,7 @@ void C_BaseAnimating::LockStudioHdr()
|
||||
|
||||
if ( pNewWrapper->GetVirtualModel() )
|
||||
{
|
||||
MDLHandle_t hVirtualModel = (MDLHandle_t)(int)(pStudioHdr->virtualModel)&0xffff;
|
||||
MDLHandle_t hVirtualModel = VoidPtrToMDLHandle( pStudioHdr->VirtualModel() );
|
||||
mdlcache->LockStudioHdr( hVirtualModel );
|
||||
}
|
||||
|
||||
@@ -950,7 +950,7 @@ void C_BaseAnimating::UnlockStudioHdr()
|
||||
// Parallel rendering: don't unlock model data until end of rendering
|
||||
if ( pStudioHdr->GetVirtualModel() )
|
||||
{
|
||||
MDLHandle_t hVirtualModel = (MDLHandle_t)(int)pStudioHdr->virtualModel&0xffff;
|
||||
MDLHandle_t hVirtualModel = VoidPtrToMDLHandle( m_pStudioHdr->GetRenderHdr()->VirtualModel() );
|
||||
pCallQueue->QueueCall( mdlcache, &IMDLCache::UnlockStudioHdr, hVirtualModel );
|
||||
}
|
||||
pCallQueue->QueueCall( mdlcache, &IMDLCache::UnlockStudioHdr, m_hStudioHdr );
|
||||
@@ -961,7 +961,7 @@ void C_BaseAnimating::UnlockStudioHdr()
|
||||
// Immediate-mode rendering, can unlock immediately
|
||||
if ( pStudioHdr->GetVirtualModel() )
|
||||
{
|
||||
MDLHandle_t hVirtualModel = (MDLHandle_t)(int)pStudioHdr->virtualModel&0xffff;
|
||||
MDLHandle_t hVirtualModel = VoidPtrToMDLHandle( m_pStudioHdr->GetRenderHdr()->VirtualModel() );
|
||||
mdlcache->UnlockStudioHdr( hVirtualModel );
|
||||
}
|
||||
mdlcache->UnlockStudioHdr( m_hStudioHdr );
|
||||
|
||||
Reference in New Issue
Block a user