mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:02:53 +08:00
Merge branch 'master' into non-null-ruleset
This commit is contained in:
commit
e5947cc969
@ -40,7 +40,14 @@ namespace osu.Game.Screens
|
||||
while (screen.LoadState < LoadState.Ready)
|
||||
Thread.Sleep(1);
|
||||
|
||||
base.Push(screen);
|
||||
try
|
||||
{
|
||||
base.Push(screen);
|
||||
}
|
||||
catch (ScreenAlreadyExitedException)
|
||||
{
|
||||
// screen may have exited before the push was successful.
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
|
@ -180,11 +180,10 @@ namespace osu.Game.Screens
|
||||
|
||||
if (Background != null && !Background.Equals(nextOsu?.Background))
|
||||
{
|
||||
if (nextOsu != null)
|
||||
//We need to use MakeCurrent in case we are jumping up multiple game screens.
|
||||
nextOsu.Background?.MakeCurrent();
|
||||
else
|
||||
Background.Exit();
|
||||
Background.Exit();
|
||||
|
||||
//We need to use MakeCurrent in case we are jumping up multiple game screens.
|
||||
nextOsu?.Background?.MakeCurrent();
|
||||
}
|
||||
|
||||
if (base.OnExiting(next))
|
||||
|
Loading…
Reference in New Issue
Block a user