mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Fix test failures
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user