Always clear first frame

This commit is contained in:
Jupeyy 2020-10-11 11:09:24 +02:00
parent 284c287c99
commit 008800d30d

View file

@ -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;