From 74adedd57e546a5361665d4df6674f4b7d467af5 Mon Sep 17 00:00:00 2001 From: lahm86 <33758420+lahm86@users.noreply.github.com> Date: Tue, 28 Jan 2025 15:46:07 +0000 Subject: [PATCH] tr2/level: unload background after texture reset This avoids the background being retained across levels potentially. --- src/tr2/game/level.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tr2/game/level.c b/src/tr2/game/level.c index 9ddef0838..9b4e5913b 100644 --- a/src/tr2/game/level.c +++ b/src/tr2/game/level.c @@ -838,4 +838,5 @@ void Level_Unload(void) memset(g_TexturePageBuffer8, 0, sizeof(uint8_t *) * MAX_TEXTURE_PAGES); memset(g_TexturePageBuffer16, 0, sizeof(uint16_t *) * MAX_TEXTURE_PAGES); Output_InitialiseObjectTextures(0); + Output_UnloadBackground(); }