diff --git a/src/d_main.c b/src/d_main.c index 0af2a6978..a3b61efdb 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -367,16 +367,22 @@ static void D_LimitFps(void); 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 @@ -384,7 +390,6 @@ static void D_MakeIntermissionBG(void) { D_Renderview(); } - #ifdef HWRENDER if (rendermode == render_opengl) { diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index 54cf9f9ab..26f6dc1fc 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -265,11 +265,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(); diff --git a/src/screen.c b/src/screen.c index 8ebd663e1..e1a264e5f 100644 --- a/src/screen.c +++ b/src/screen.c @@ -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.