Browse Source

engine: client: fixed client VGUI API shutdown

pull/2/head
SNMetamorph 2 years ago committed by Alibek Omarov
parent
commit
ae94a6aeba
  1. 3
      engine/client/cl_game.c
  2. 4
      engine/client/cl_main.c

3
engine/client/cl_game.c

@ -3898,6 +3898,9 @@ void CL_UnloadProgs( void ) @@ -3898,6 +3898,9 @@ void CL_UnloadProgs( void )
{
if( !clgame.hInstance ) return;
if( GI->internal_vgui_support )
VGui_Shutdown();
CL_FreeEdicts();
CL_FreeTempEnts();
CL_FreeViewBeams();

4
engine/client/cl_main.c

@ -3138,7 +3138,9 @@ void CL_Shutdown( void ) @@ -3138,7 +3138,9 @@ void CL_Shutdown( void )
CL_UnloadProgs ();
cls.initialized = false;
VGui_Shutdown();
// for client-side VGUI support we use other order
if( !GI->internal_vgui_support )
VGui_Shutdown();
FS_Delete( "demoheader.tmp" ); // remove tmp file
SCR_FreeCinematic (); // release AVI's *after* client.dll because custom renderer may use them

Loading…
Cancel
Save