From 0fcfaa147dc7051d36f1ba809c22a9ff9a90edb4 Mon Sep 17 00:00:00 2001 From: David Joslin Date: Sun, 19 Nov 2023 17:07:43 -0800 Subject: [PATCH] Prevent multitexture corruption in new Mario/Luigi models --- actors/luigi/model.inc.c | 2 +- actors/mario/model.inc.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/actors/luigi/model.inc.c b/actors/luigi/model.inc.c index a29a355f..b16e880c 100644 --- a/actors/luigi/model.inc.c +++ b/actors/luigi/model.inc.c @@ -4098,4 +4098,4 @@ const Gfx luigi_material_revert_render_settings[] = { gsDPSetTileSize(1, 0, 0, 124, 124), gsSPEndDisplayList(), -}; \ No newline at end of file +}; diff --git a/actors/mario/model.inc.c b/actors/mario/model.inc.c index f4d559ed..1cdda54a 100644 --- a/actors/mario/model.inc.c +++ b/actors/mario/model.inc.c @@ -2149,16 +2149,19 @@ const Gfx mario_m_logo_decal[] = { gsDPSetPrimColor(0, 0, 127, 127, 127, 255), gsSPLight(&mario_black_lights_group.l, 1), gsSPCopyLightEXT(2, 15), + gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 1, mario_texture_m_logo), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 0, 0, 7, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0), gsDPLoadBlock(7, 0, 0, 1023, 256), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, 0, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0), gsDPSetTileSize(0, 0, 0, 124, 124), + gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 1, mario_texture_m_blend), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 0, 256, 6, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0), gsDPLoadBlock(6, 0, 0, 1023, 256), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 256, 1, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0), gsDPSetTileSize(1, 0, 0, 124, 124), + gsSPDisplayList(mario_m_logo_dl), gsDPSetCycleType(G_CYC_1CYCLE), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), @@ -4367,4 +4370,4 @@ const Gfx mario_material_revert_render_settings[] = { gsDPSetTileSize(1, 0, 0, 124, 124), gsSPEndDisplayList(), -}; \ No newline at end of file +};