hack: fix intermission background becoming white after resolution change

This commit is contained in:
alufolie91 committed 2026-04-12 15:23:53 +02:00
1 parent e0bf663157
commit 4edc102d67
3 files changed
+16 -5

No files matched your search

+9 -4
View File
@@ -364,16 +364,22 @@ gamestate_t wipegamestate = GS_LEVEL;
static void D_MakeIntermissionBG(void)
{
if (rendermode == render_none)
return;
if (!lastdraw)
return;
if (rendermode == render_none)
{
lastdraw = false;
return;
}
// no more valid map
// shouldnt happen at this point, but better safe than sorry!
if (!numsectors)
{
lastdraw = false;
return;
}
// need to render level again for this
// should be fine since at this point we did not unload it yet
@@ -381,7 +387,6 @@ static void D_MakeIntermissionBG(void)
{
D_Renderview();
}
#ifdef HWRENDER
if (rendermode == render_opengl)
{
+3 -1
View File
@@ -254,11 +254,13 @@ static void CV_screentextures_OnChange(void)
{
if (cv_glpaletterendering.value != 0)
CV_SetValue(&cv_glpaletterendering, 0);
#ifdef USE_FBO_OGL
if (cv_glframebuffer.value != 0)
CV_SetValue(&cv_glframebuffer, 0);
#endif
// HACK: set lastdraw so intermission bg can refresh after toggling screentextures
if (gamestate == GS_INTERMISSION)
lastdraw = true;
}
GL_SetSpecialState(HWD_SET_SCREEN_TEXTURES, cv_glscreentextures.value);
M_UpdateOGLMenu();
+4
View File
@@ -277,6 +277,10 @@ void SCR_Recalc(void)
// vid.recalc lasts only for the next refresh...
con_recalc = true;
am_recalc = true;
// HACK: set lastdraw so intermission bg can refresh after resolution change
if (gamestate == GS_INTERMISSION)
lastdraw = true;
}
// Check for screen cmd-line parms: to force a resolution.