Workaround for #8020

This commit is contained in:
Henrik Rydgard 2015-10-04 00:00:46 +02:00
parent 682472c5b5
commit 50d66f9a19
2 changed files with 6 additions and 0 deletions

View File

@ -190,6 +190,11 @@ public:
PrioritizedWorkQueue *WorkQueue() { return gameInfoWQ_; } PrioritizedWorkQueue *WorkQueue() { return gameInfoWQ_; }
void WaitUntilDone(GameInfo *info) {
// Hack - should really wait specifically for that item.
gameInfoWQ_->WaitUntilDone();
}
private: private:
void SetupTexture(GameInfo *info, std::string &textureData, Thin3DContext *thin3d, Thin3DTexture *&tex, double &loadTime); void SetupTexture(GameInfo *info, std::string &textureData, Thin3DContext *thin3d, Thin3DTexture *&tex, double &loadTime);

View File

@ -46,6 +46,7 @@ GameScreen::~GameScreen() {
void GameScreen::CreateViews() { void GameScreen::CreateViews() {
GameInfo *info = g_gameInfoCache.GetInfo(NULL, gamePath_, GAMEINFO_WANTBG | GAMEINFO_WANTSIZE); GameInfo *info = g_gameInfoCache.GetInfo(NULL, gamePath_, GAMEINFO_WANTBG | GAMEINFO_WANTSIZE);
g_gameInfoCache.WaitUntilDone(info);
I18NCategory *di = GetI18NCategory("Dialog"); I18NCategory *di = GetI18NCategory("Dialog");
I18NCategory *ga = GetI18NCategory("Game"); I18NCategory *ga = GetI18NCategory("Game");