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

TextDrawer must be inited before TextureFilterHandler.

This commit is contained in:
Sergey Lipskiy 2017-02-12 15:06:31 +07:00
parent 86d33b24c0
commit 97acd7d071

View File

@ -1567,12 +1567,12 @@ void GraphicsDrawer::_initData()
DepthBuffer_Init(); DepthBuffer_Init();
FrameBuffer_Init(); FrameBuffer_Init();
Combiner_Init(); Combiner_Init();
g_textDrawer.init();
TFH.init(); TFH.init();
PostProcessor::get().init(); PostProcessor::get().init();
g_zlutTexture.init(); g_zlutTexture.init();
g_noiseTexture.init(); g_noiseTexture.init();
g_paletteTexture.init(); g_paletteTexture.init();
g_textDrawer.init();
perf.reset(); perf.reset();
FBInfo::fbInfo.reset(); FBInfo::fbInfo.reset();
m_texrectDrawer.init(); m_texrectDrawer.init();
@ -1592,13 +1592,13 @@ void GraphicsDrawer::_destroyData()
{ {
m_drawingState = DrawingState::Non; m_drawingState = DrawingState::Non;
m_texrectDrawer.destroy(); m_texrectDrawer.destroy();
g_textDrawer.destroy();
g_paletteTexture.destroy(); g_paletteTexture.destroy();
g_zlutTexture.destroy(); g_zlutTexture.destroy();
g_noiseTexture.destroy(); g_noiseTexture.destroy();
PostProcessor::get().destroy(); PostProcessor::get().destroy();
if (TFH.optionsChanged()) if (TFH.optionsChanged())
TFH.shutdown(); TFH.shutdown();
g_textDrawer.destroy();
Combiner_Destroy(); Combiner_Destroy();
FrameBuffer_Destroy(); FrameBuffer_Destroy();
DepthBuffer_Destroy(); DepthBuffer_Destroy();