mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 08:13:31 +08:00
Reference whether texture is available rather than disposed
This commit is contained in:
parent
5e5a74293e
commit
9b0954ab81
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user