hack: fix intermission background becoming white after resolution change
This commit is contained in:
1 parent
62a2e011c6
commit
f70f7daa7b
3 files changed
+16
-5
No files matched your search
+9
-4
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user