- added some texure cleanups

This commit is contained in:
Fledge68 2020-08-13 18:29:43 -05:00
parent 02a7bb4846
commit dc967db949
3 changed files with 10 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 MiB

After

Width:  |  Height:  |  Size: 4.1 MiB

View File

@ -559,6 +559,10 @@ void CMenu::_Theme_Cleanup(void)
TexHandle.Cleanup(theme.pbarTexLS); TexHandle.Cleanup(theme.pbarTexLS);
TexHandle.Cleanup(theme.pbarTexRS); TexHandle.Cleanup(theme.pbarTexRS);
TexHandle.Cleanup(theme.pbarTexCS); TexHandle.Cleanup(theme.pbarTexCS);
/* plugin game snapshot and overlay */
TexHandle.Cleanup(m_game_snap);
TexHandle.Cleanup(m_game_overlay);
/* Other Theme Stuff */ /* Other Theme Stuff */
for(TexSet::iterator texture = theme.texSet.begin(); texture != theme.texSet.end(); ++texture) for(TexSet::iterator texture = theme.texSet.begin(); texture != theme.texSet.end(); ++texture)
TexHandle.Cleanup(texture->second); TexHandle.Cleanup(texture->second);

View File

@ -208,6 +208,12 @@ bool CMenu::_gameinfo(void)
TexHandle.Cleanup(m_cart); TexHandle.Cleanup(m_cart);
TexHandle.Cleanup(m_snap); TexHandle.Cleanup(m_snap);
TexHandle.Cleanup(m_overlay); TexHandle.Cleanup(m_overlay);
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblControlsReq); i++)
TexHandle.Cleanup(m_controlsreq[i]);
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblControls); i++)
TexHandle.Cleanup(m_controls[i]);
TexHandle.Cleanup(m_wifi);
TexHandle.Cleanup(m_rating);
return launchGame; return launchGame;
} }