diff --git a/deps/teagba/include/teagba/gfx.hpp b/deps/teagba/include/teagba/gfx.hpp index fdee0378e..8c2b6a034 100644 --- a/deps/teagba/include/teagba/gfx.hpp +++ b/deps/teagba/include/teagba/gfx.hpp @@ -36,9 +36,6 @@ struct OX_ALIGN8 GbaSpriteAttrUpdate { }; -extern volatile uint16_t g_spriteUpdates; -extern ox::Array g_spriteBuffer; - void addSpriteUpdate(const GbaSpriteAttrUpdate &upd) noexcept; void applySpriteUpdates() noexcept; diff --git a/deps/teagba/src/gfx.cpp b/deps/teagba/src/gfx.cpp index 2148dfac3..8db190b77 100644 --- a/deps/teagba/src/gfx.cpp +++ b/deps/teagba/src/gfx.cpp @@ -10,8 +10,8 @@ namespace teagba { -volatile uint16_t g_spriteUpdates = 0; -ox::Array g_spriteBuffer; +static volatile uint16_t g_spriteUpdates = 0; +static ox::Array g_spriteBuffer; void addSpriteUpdate(const GbaSpriteAttrUpdate &upd) noexcept { // block until g_spriteUpdates is less than buffer len