Fixed fontcache thread exception

This commit is contained in:
Jack Andersen 2015-12-12 16:40:03 -10:00
parent 6dde3e6003
commit d4eaaca453
1 changed files with 5 additions and 0 deletions

View File

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