mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 08:03:12 +08:00
Fix TestCaseMenuButtonSystem not starting up
This commit is contained in:
parent
3764c1d799
commit
63aabc162b
@ -63,10 +63,11 @@ namespace osu.Game.Screens.Menu
|
|||||||
AccentColour = Color4.White;
|
AccentColour = Color4.White;
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader(true)]
|
||||||
private void load(ShaderManager shaders, OsuGame game)
|
private void load(ShaderManager shaders, OsuGame game)
|
||||||
{
|
{
|
||||||
beatmap.BindTo(game.Beatmap);
|
if (game?.Beatmap != null)
|
||||||
|
beatmap.BindTo(game.Beatmap);
|
||||||
shader = shaders?.Load(VertexShaderDescriptor.TEXTURE_2, FragmentShaderDescriptor.TEXTURE_ROUNDED);
|
shader = shaders?.Load(VertexShaderDescriptor.TEXTURE_2, FragmentShaderDescriptor.TEXTURE_ROUNDED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user