mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: ref: Fix crash on invalid ref lib
This commit is contained in:
@@ -466,7 +466,8 @@ static void R_UnloadProgs( void )
|
||||
if( !ref.hInstance ) return;
|
||||
|
||||
// deinitialize renderer
|
||||
ref.dllFuncs.R_Shutdown();
|
||||
if (ref.dllFuncs.R_Shutdown)
|
||||
ref.dllFuncs.R_Shutdown();
|
||||
|
||||
Cvar_FullSet( "host_refloaded", "0", FCVAR_READ_ONLY );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user