Skip to content

Commit

Permalink
tr2/level: unload background after texture reset
Browse files Browse the repository at this point in the history
This avoids the background being retained across levels potentially.
  • Loading branch information
lahm86 committed Jan 28, 2025
1 parent 2d9f033 commit 74adedd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tr2/game/level.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 74adedd

Please sign in to comment.