From 8f4385c39bba5adf0ea7e95849d16e3698756fb4 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 26 Sep 2025 17:46:59 +0100 Subject: [PATCH] fix windoze compile --- src/m_misc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/m_misc.c b/src/m_misc.c index c59b10a6a..9e7ec309e 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -1243,8 +1243,10 @@ void M_SaveFrame(void) I_ReadScreen(linear, 1); } #ifdef HWRENDER - else - linear = HWR_GetScreenshot(); + else if (rendermode == render_opengl) + { + linear = HWR_GetScreenshot(1); + } #endif M_PNGFrame(apng_ptr, apng_info_ptr, (png_bytep)linear); #ifdef HWRENDER @@ -1506,7 +1508,7 @@ void M_DoScreenShot(void) char pathname[MAX_WADPATH]; boolean ret = false; UINT8 *linear = NULL; - UINT8 *palette; + UINT8 *palette = NULL; // Don't take multiple screenshots, obviously takescreenshot = false;