mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 13:23:40 +01:00
Fix verbose log in TextureManager.Dispose (#1596)
This commit is contained in:
parent
de53150bd3
commit
653dca2feb
1 changed files with 5 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
@ -273,7 +273,10 @@ internal class TextureManager : IDisposable, IServiceType, ITextureProvider, ITe
|
||||||
this.fallbackTextureWrap?.Dispose();
|
this.fallbackTextureWrap?.Dispose();
|
||||||
this.framework.Update -= this.FrameworkOnUpdate;
|
this.framework.Update -= this.FrameworkOnUpdate;
|
||||||
|
|
||||||
Log.Verbose("Disposing {Num} left behind textures.");
|
if (this.activeTextures.Count == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
Log.Verbose("Disposing {Num} left behind textures.", this.activeTextures.Count);
|
||||||
|
|
||||||
foreach (var activeTexture in this.activeTextures)
|
foreach (var activeTexture in this.activeTextures)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue