all repos — mgba @ e1b681f6036706a402f5ab581b61a0f9dcc354ec

mGBA Game Boy Advance Emulator

Qt: Fix race condition when opening sprites window
Eevee (Lexy Munroe) eevee.git@veekun.com
Fri, 05 May 2017 19:07:42 -0700
commit

e1b681f6036706a402f5ab581b61a0f9dcc354ec

parent

87170f9b774d616291810661c34a7d2e5218963a

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M src/platform/qt/GameController.cppsrc/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());