mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 09:23:06 +08:00
Ensure the correct background state is restored when skipping multiple levels
This commit is contained in:
parent
93f326bb9b
commit
27a26cfaaf
@ -60,7 +60,13 @@ namespace osu.Game.GameModes
|
||||
OsuGameMode nextOsu = next as OsuGameMode;
|
||||
|
||||
if (Background != null && !Background.Equals(nextOsu?.Background))
|
||||
Background.Exit();
|
||||
{
|
||||
if (nextOsu != null)
|
||||
//We need to use MakeCurrent in case we are jumping up multiple game modes.
|
||||
nextOsu.Background.MakeCurrent();
|
||||
else
|
||||
Background.Exit();
|
||||
}
|
||||
|
||||
return base.OnExiting(next);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user