2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-04 21:55:52 +00:00

Fixed fontcache thread exception

This commit is contained in:
Jack Andersen 2015-12-12 16:40:03 -10:00
parent 6dde3e6003
commit d4eaaca453

View File

@ -85,6 +85,11 @@ public:
ViewResources& operator=(const ViewResources& other) = delete; ViewResources& operator=(const ViewResources& other) = delete;
ViewResources& operator=(ViewResources&& other) = default; ViewResources& operator=(ViewResources&& other) = default;
~ViewResources()
{
m_fcacheThread.detach();
}
void init(boo::IGraphicsDataFactory* factory, FontCache* fcache, const ThemeData& theme, float pixelFactor); void init(boo::IGraphicsDataFactory* factory, FontCache* fcache, const ThemeData& theme, float pixelFactor);
void prepFontCacheSync(); void prepFontCacheSync();
void prepFontCacheAsync(boo::IWindow* window); void prepFontCacheAsync(boo::IWindow* window);