mirror of https://github.com/AxioDL/metaforce.git
Add methods to support sequential resource destruction
This commit is contained in:
parent
0e9011be2f
commit
c9631253a2
|
@ -191,6 +191,8 @@ public:
|
|||
void closeBuiltinFonts() {m_regFace.close(); m_monoFace.close(); m_curvesFace.close();}
|
||||
|
||||
const FontAtlas& lookupAtlas(FontTag tag) const;
|
||||
|
||||
void destroyAtlases() {m_cachedAtlases.clear();}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -188,6 +188,11 @@ public:
|
|||
ViewResources& operator=(const ViewResources& other) = delete;
|
||||
ViewResources& operator=(ViewResources&& other) = default;
|
||||
|
||||
void destroyResData()
|
||||
{
|
||||
m_resData.doDestroy();
|
||||
}
|
||||
|
||||
~ViewResources()
|
||||
{
|
||||
if (m_fcacheThread.joinable())
|
||||
|
|
Loading…
Reference in New Issue