From 008800d30dfe40cafec4e7d980163aa89a32177a Mon Sep 17 00:00:00 2001 From: Jupeyy Date: Sun, 11 Oct 2020 11:09:24 +0200 Subject: [PATCH] Always clear first frame --- src/engine/client/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index d0490b6a1..96d0cf906 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -3030,6 +3030,10 @@ void CClient::Run() } } + // make sure the first frame just clears everything to prevent undesired colors when waiting for io + Graphics()->Clear(0, 0, 0); + Graphics()->Swap(); + // init sound, allowed to fail m_SoundInitFailed = Sound()->Init() != 0;