Qt: Fix race condition when opening sprites window
Eevee (Lexy Munroe) eevee.git@veekun.com
Fri, 05 May 2017 19:07:42 -0700
1 files changed,
1 insertions(+),
2 deletions(-)
M
src/platform/qt/GameController.cpp
→
src/platform/qt/GameController.cpp
@@ -1258,10 +1258,10 @@ std::shared_ptr<mTileCache> GameController::tileCache() {
if (m_tileCache) { return m_tileCache; } + Interrupter interrupter(this); switch (platform()) { #ifdef M_CORE_GBA case PLATFORM_GBA: { - Interrupter interrupter(this); GBA* gba = static_cast<GBA*>(m_threadContext.core->board); m_tileCache = std::make_shared<mTileCache>(); GBAVideoTileCacheInit(m_tileCache.get());@@ -1272,7 +1272,6 @@ }
#endif #ifdef M_CORE_GB case PLATFORM_GB: { - Interrupter interrupter(this); GB* gb = static_cast<GB*>(m_threadContext.core->board); m_tileCache = std::make_shared<mTileCache>(); GBVideoTileCacheInit(m_tileCache.get());