Skip to content

Commit 3cc19e1

Browse files
authored
Fix dxDrawModel3D not always working (returning false) (#4895)
Commit 37fc495 (February) introduced a regression that leads to dxDrawModel3D failures (Won't work and returns false if it happens). This fixes it.
1 parent a41829b commit 3cc19e1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Client/mods/deathmatch/logic/CClientGame.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3653,6 +3653,9 @@ void CClientGame::StaticPostWorldProcessPedsAfterPreRenderHandler()
36533653

36543654
void CClientGame::StaticPreFxRenderHandler()
36553655
{
3656+
// RenderFadingInEntities is done at this point, so alpha entity list callbacks
3657+
// no longer reference CModelRenderer's queue elements.
3658+
g_pClientGame->GetModelRenderer()->NotifyFrameEnd();
36563659
g_pCore->OnPreFxRender();
36573660
}
36583661

0 commit comments

Comments
 (0)