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:
parent
2d16042860
commit
57c4d07968
2
OpenGL.h
2
OpenGL.h
|
@ -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; }
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user