1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Don't shutdown TextureFilterHandler on RomClosed.

Fixed texture cache reload on savestate load.
This commit is contained in:
Sergey Lipskiy 2015-04-12 21:53:22 +06:00
parent 2d16042860
commit 57c4d07968
2 changed files with 1 additions and 2 deletions

View File

@ -213,7 +213,7 @@ class TextureFilterHandler
public:
TextureFilterHandler() : m_inited(0) {}
// It's not safe to call shutdown() in destructor, because texture filter has its own static objects, which can be destroyed first.
~TextureFilterHandler() { m_inited = 0; }
~TextureFilterHandler() { shutdown(); }
void init();
void shutdown();
bool isInited() const { return m_inited != 0; }

View File

@ -50,7 +50,6 @@ void RSP_ThreadProc(std::mutex * _pRspThreadMtx, std::mutex * _pPluginThreadMtx,
VI_UpdateScreen();
break;
case acRomClosed:
TFH.shutdown();
video().stop();
GBI.destroy();
*_pCommand = acNone;