mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: dispose textures correctly in ReShade mode
This commit is contained in:
parent
e6ef219b80
commit
44ca7ce848
1 changed files with 7 additions and 2 deletions
|
|
@ -609,12 +609,19 @@ internal class InterfaceManager : IDisposable, IServiceType
|
|||
var pRes = this.presentHook.Original(swapChain, syncInterval, presentFlags);
|
||||
|
||||
this.RenderImGui();
|
||||
this.DisposeTextures();
|
||||
|
||||
return pRes;
|
||||
}
|
||||
|
||||
this.RenderImGui();
|
||||
this.DisposeTextures();
|
||||
|
||||
return this.presentHook.Original(swapChain, syncInterval, presentFlags);
|
||||
}
|
||||
|
||||
private void DisposeTextures()
|
||||
{
|
||||
if (this.deferredDisposeTextures.Count > 0)
|
||||
{
|
||||
Log.Verbose("[IM] Disposing {Count} textures", this.deferredDisposeTextures.Count);
|
||||
|
|
@ -625,8 +632,6 @@ internal class InterfaceManager : IDisposable, IServiceType
|
|||
|
||||
this.deferredDisposeTextures.Clear();
|
||||
}
|
||||
|
||||
return this.presentHook.Original(swapChain, syncInterval, presentFlags);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue