Merge pull request #9848 from peppy/menu-background-memory-usage

Load menu backgrounds via LargeTextureStore to reduce memory usage
This commit is contained in:
Dan Balasescu 2020-08-14 18:47:06 +09:00 committed by GitHub
commit 7cfc20efd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ public BeatmapBackground(WorkingBeatmap beatmap, string fallbackTextureName = @"
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(TextureStore textures) private void load(LargeTextureStore textures)
{ {
Sprite.Texture = Beatmap?.Background ?? textures.Get(fallbackTextureName); Sprite.Texture = Beatmap?.Background ?? textures.Get(fallbackTextureName);
} }