From c53bf689e16f59e2b4c302f87e3ab92334abc640 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Wed, 5 Sep 2018 17:22:13 +0700 Subject: [PATCH] Correct calculation of bytes for 32bit textures in gDPLoadTile Fixed 1080 Snowboarding title logo regression #1824 --- src/gDP.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gDP.cpp b/src/gDP.cpp index 9b4801a9..6e103874 100644 --- a/src/gDP.cpp +++ b/src/gDP.cpp @@ -448,6 +448,9 @@ void gDPLoadTile(u32 tile, u32 uls, u32 ult, u32 lrs, u32 lrt) info.size = gDP.textureImage.size; info.loadType = LOADTYPE_TILE; info.bytes = bpl * height; + if (gDP.loadTile->size == G_IM_SIZ_32b) + // 32 bit texture loaded into lower and upper half of TMEM, thus actual bytes doubled. + info.bytes *= 2; if (gDP.loadTile->line == 0) return;