1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Only pause rendering if the Android activity is stopped (#14211)

This commit is contained in:
grorp 2024-01-27 14:37:00 +01:00 committed by GitHub
parent 89f3502b56
commit fbec168e91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 15 deletions

View file

@ -4207,7 +4207,7 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats, f32 dtime,
/*
==================== Drawing begins ====================
*/
if (RenderingEngine::shouldRender())
if (device->isWindowVisible())
drawScene(graph, stats);
/*
==================== End scene ====================