From a132b72ba14a59f0fcdded67b95b74574ad3afb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 4 May 2023 01:24:31 +0200 Subject: [PATCH] Paranoia --- Common/UI/UIScreen.cpp | 1 + UI/GameInfoCache.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Common/UI/UIScreen.cpp b/Common/UI/UIScreen.cpp index 69739dcc24..af640e49e8 100644 --- a/Common/UI/UIScreen.cpp +++ b/Common/UI/UIScreen.cpp @@ -111,6 +111,7 @@ void UIScreen::postRender() { if (!draw) { return; } + screenManager()->getUIContext()->Flush(); draw->EndFrame(); } diff --git a/UI/GameInfoCache.cpp b/UI/GameInfoCache.cpp index ceef80cedd..2a6ff5b33f 100644 --- a/UI/GameInfoCache.cpp +++ b/UI/GameInfoCache.cpp @@ -365,7 +365,7 @@ public: } // In case of a remote file, check if it actually exists before locking. - if (!info_->GetFileLoader()->Exists()) { + if (!info_->GetFileLoader() || !info_->GetFileLoader()->Exists()) { return; }