fix custom pipes mem leak

This commit is contained in:
aap 2020-12-29 20:30:57 +01:00
parent d39c145f60
commit 14f7dbade8
3 changed files with 24 additions and 14 deletions

View file

@ -274,12 +274,26 @@ CGame::InitialiseRenderWare(void)
CPlayerSkin::Initialise();
#endif
#ifdef EXTENDED_PIPELINES
CustomPipes::CustomPipeInit(); // need Scene.world for this
#endif
#ifdef SCREEN_DROPLETS
ScreenDroplets::InitDraw();
#endif
return (true);
}
// missing altogether on PS2
void CGame::ShutdownRenderWare(void)
{
#ifdef SCREEN_DROPLETS
ScreenDroplets::Shutdown();
#endif
#ifdef EXTENDED_PIPELINES
CustomPipes::CustomPipeShutdown();
#endif
CMBlur::MotionBlurClose();
DestroySplashScreen();
CHud::Shutdown();