Fix NowPlayingOverlay loading background texture too early (and permanently)

This commit is contained in:
Dean Herbert
2022-11-18 11:21:12 +09:00
parent f67e8ce523
commit b53f9baf6a

View File

@ -100,7 +100,7 @@ namespace osu.Game.Overlays
}, },
Children = new[] Children = new[]
{ {
background = new Background(), background = Empty(),
title = new OsuSpriteText title = new OsuSpriteText
{ {
Origin = Anchor.BottomCentre, Origin = Anchor.BottomCentre,
@ -413,7 +413,7 @@ namespace osu.Game.Overlays
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(TextureStore textures) private void load(LargeTextureStore textures)
{ {
sprite.Texture = beatmap?.Background ?? textures.Get(@"Backgrounds/bg4"); sprite.Texture = beatmap?.Background ?? textures.Get(@"Backgrounds/bg4");
} }