From 9deeb94f06ac5b3e49ec89c05408e0567a43bea5 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 26 Feb 2018 14:46:48 +0000 Subject: [PATCH] Invalidate TILE_SAVESHOT whenever it is overwritten, so that it updates properly in GL. (Also remove a redundant call to the screenshot function.) git-svn-id: https://svn.eduke32.com/eduke32@6703 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/game.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index 8ffb25cd6..16d2ba1ee 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -1048,6 +1048,8 @@ void G_DrawRooms(int32_t playerNum, int32_t smoothRatio) { g_screenCapture = 0; + invalidatetile(TILE_SAVESHOT, 0, 255); + if (getrendermode() == REND_CLASSIC) { setviewback(); @@ -4817,10 +4819,6 @@ FAKE_F2: Menu_Change(MENU_SAVE); - g_screenCapture = 1; - G_DrawRooms(myconnectindex,65536); - g_screenCapture = 0; - S_PauseSounds(1); Menu_Open(myconnectindex);