3058: Always clear first frame r=def- a=Jupeyy



Co-authored-by: Jupeyy <jupjopjap@gmail.com>
This commit is contained in:
bors[bot] 2020-10-11 09:34:55 +00:00 committed by GitHub
commit 692c37398e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;