mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
TextureManagerPluginScoped must depend on TextureManager to ensure unload order
This commit is contained in:
parent
b429c77e3e
commit
68656f2b40
1 changed files with 3 additions and 2 deletions
|
|
@ -28,6 +28,7 @@ namespace Dalamud.Interface.Textures.Internal;
|
|||
[ResolveVia<ITextureProvider>]
|
||||
[ResolveVia<ITextureSubstitutionProvider>]
|
||||
[ResolveVia<ITextureReadbackProvider>]
|
||||
[InherentDependency<TextureManager>]
|
||||
#pragma warning restore SA1015
|
||||
internal sealed class TextureManagerPluginScoped
|
||||
: IInternalDisposableService,
|
||||
|
|
@ -310,7 +311,7 @@ internal sealed class TextureManagerPluginScoped
|
|||
texture = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc/>
|
||||
public ISharedImmediateTexture GetFromGame(string path)
|
||||
{
|
||||
|
|
@ -326,7 +327,7 @@ internal sealed class TextureManagerPluginScoped
|
|||
shared.AddOwnerPlugin(this.plugin);
|
||||
return shared;
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc/>
|
||||
public ISharedImmediateTexture GetFromFile(FileInfo file)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue