Fix test failures

This commit is contained in:
Dan Balasescu
2022-08-02 20:18:45 +09:00
parent b4e55f7309
commit 5a1c05918f
3 changed files with 21 additions and 10 deletions

View File

@ -43,10 +43,19 @@ namespace osu.Game.Tests.Visual.Background
"Backgrounds/bg3"
};
[BackgroundDependencyLoader]
private void load(IRenderer renderer, LargeTextureStore wrappedStore)
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
{
var dependencies = new DependencyContainer(base.CreateChildDependencies(parent));
textureStore = new LookupLoggingTextureStore(dependencies.Get<IRenderer>());
dependencies.CacheAs(typeof(LargeTextureStore), textureStore);
return dependencies;
}
[BackgroundDependencyLoader]
private void load(LargeTextureStore wrappedStore)
{
textureStore = new LookupLoggingTextureStore(renderer);
textureStore.AddStore(wrappedStore);
Child = new DependencyProvidingContainer