From 6d024b712489b992f702b99f28702094afaebf25 Mon Sep 17 00:00:00 2001 From: Jaime Passos Date: Tue, 5 Nov 2019 17:35:16 -0300 Subject: [PATCH] I guess I'll have to do at least SOMETHING about OpenGL --- src/d_main.c | 7 +++++++ src/y_inter.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/d_main.c b/src/d_main.c index eff608281..ca40fcb24 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -227,7 +227,14 @@ static void D_Display(void) SCR_SetMode(); // change video mode if (vid.recalc) + { SCR_Recalc(); // NOTE! setsizeneeded is set by SCR_Recalc() +#ifdef HWRENDER + // Shoot! The screen texture was flushed! + if ((rendermode == render_opengl) && (gamestate == GS_INTERMISSION)) + usebuffer = false; +#endif + } // change the view size if needed if (setsizeneeded) diff --git a/src/y_inter.c b/src/y_inter.c index 335b2a43b..0a6e3b3fe 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -346,7 +346,7 @@ void Y_IntermissionDrawer(void) } } #ifdef HWRENDER - else if(rendermode != render_soft && usebuffer) + else if (rendermode != render_soft && usebuffer) HWR_DrawIntermissionBG(); #endif else