Skip to content

Commit

Permalink
aarch64 lto broken GPU2D workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
RSDuck committed Nov 18, 2024
1 parent c01b2bf commit cb7af65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GPU2D_Soft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,9 @@ void SoftRenderer::DrawBG_3D()
template<bool mosaic, SoftRenderer::DrawPixel drawPixel>
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;
Expand Down

0 comments on commit cb7af65

Please sign in to comment.