1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Fix all cached media being loaded at once on the main thread

This commit is contained in:
Gregor Parzefall 2024-04-02 09:39:44 +02:00 committed by sfan5
parent a9a0f1e129
commit b2982a6f14
3 changed files with 19 additions and 0 deletions

View file

@ -1795,6 +1795,11 @@ float Client::mediaReceiveProgress()
return 1.0; // downloader only exists when not yet done
}
void Client::drawLoadScreen(const std::wstring &text, float dtime, int percent) {
m_rendering_engine->run();
m_rendering_engine->draw_load_screen(text, guienv, m_tsrc, dtime, percent);
}
struct TextureUpdateArgs {
gui::IGUIEnvironment *guienv;
u64 last_time_ms;