diff --git a/src/GPU2D_Soft.cpp b/src/GPU2D_Soft.cpp index 6ad2cd3e..01dade2b 100644 --- a/src/GPU2D_Soft.cpp +++ b/src/GPU2D_Soft.cpp @@ -914,6 +914,9 @@ void SoftRenderer::DrawBG_3D() template void SoftRenderer::DrawBG_Text(u32 line, u32 bgnum) { + // workaround for backgrounds missing on aarch64 with lto build + asm volatile ("" : : : "memory"); + u16 bgcnt = CurUnit->BGCnt[bgnum]; u32 tilesetaddr, tilemapaddr;