From 15de1d560972d95a98db3a63635e5050f6927020 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sat, 28 May 2022 00:16:16 -0700 Subject: [PATCH] Prevent assert in load_tlut --- src/pc/gfx/gfx_pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/gfx/gfx_pc.c b/src/pc/gfx/gfx_pc.c index dfd630486..c0aa0fb27 100644 --- a/src/pc/gfx/gfx_pc.c +++ b/src/pc/gfx/gfx_pc.c @@ -1257,7 +1257,7 @@ static void gfx_dp_set_tile_size(uint8_t tile, uint16_t uls, uint16_t ult, uint1 } static void gfx_dp_load_tlut(uint8_t tile, UNUSED uint32_t high_index) { - SUPPORT_CHECK(tile == G_TX_LOADTILE); + if (tile != G_TX_LOADTILE) { return; } SUPPORT_CHECK(rdp.texture_to_load.siz == G_IM_SIZ_16b); rdp.palette = rdp.texture_to_load.addr; }