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

Revert "Don't shutdown TextureFilterHandler on RomClosed."

It causes problems with texture cache save.

This reverts commit f30f135d9ca2371fb44ce26d8138d73a85780027.
This commit is contained in:
Sergey Lipskiy 2015-04-16 19:57:59 +06:00
parent 1558571ca9
commit 62b5807b1b
2 changed files with 2 additions and 1 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() { shutdown(); }
~TextureFilterHandler() { m_inited = 0; }
void init();
void shutdown();
bool isInited() const { return m_inited != 0; }

View File

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