1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +08:00

Fix TestCaseMenuButtonSystem not starting up

This commit is contained in:
ColdVolcano 2017-06-18 22:34:45 -05:00
parent 3764c1d799
commit 63aabc162b

View File

@ -63,10 +63,11 @@ namespace osu.Game.Screens.Menu
AccentColour = Color4.White;
}
[BackgroundDependencyLoader]
[BackgroundDependencyLoader(true)]
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);
}