From f4d240b05df27c851ed5a6da7bb6bf77d4947387 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 6 Jun 2022 17:34:31 +0200 Subject: [PATCH] - this behaves a little better on OpenGL. --- src/d_main.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index 0d3408778..e658d74a3 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -3386,17 +3386,18 @@ static int D_InitGame(const FIWADInfo* iwad_info, TArray& allwads, TArr } if (StartScreen == nullptr) V_Init2(); - while(!screen->CompileNextShader()) - { - // here we can do some visual updates later - } - if (StartScreen) + if (StartScreen) { StartScreen->Progress(max_progress); // advance progress bar to the end. StartScreen->Render(true); delete StartScreen; StartScreen = NULL; } + + while(!screen->CompileNextShader()) + { + // here we can do some visual updates later + } twod->fullscreenautoaspect = gameinfo.fullscreenautoaspect; // Initialize the size of the 2D drawer so that an attempt to access it outside the draw code won't crash. twod->Begin(screen->GetWidth(), screen->GetHeight());