mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Reference whether texture is available rather than disposed
This commit is contained in:
@ -135,7 +135,7 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
public bool BackgroundLoaded => background.IsResultAvailable;
|
||||
public Texture Background => background.Value;
|
||||
protected virtual bool BackgroundStillValid(Texture b) => b == null || !b.IsDisposed;
|
||||
protected virtual bool BackgroundStillValid(Texture b) => b == null || b.Available;
|
||||
protected abstract Texture GetBackground();
|
||||
private readonly RecyclableLazy<Texture> background;
|
||||
|
||||
|
Reference in New Issue
Block a user