diff --git a/src/BizHawk.Bizware.Graphics/Renderers/ImGui2DRenderer.cs b/src/BizHawk.Bizware.Graphics/Renderers/ImGui2DRenderer.cs index 0771e08d45..6ba6ceb34b 100644 --- a/src/BizHawk.Bizware.Graphics/Renderers/ImGui2DRenderer.cs +++ b/src/BizHawk.Bizware.Graphics/Renderers/ImGui2DRenderer.cs @@ -106,8 +106,9 @@ namespace BizHawk.Bizware.Graphics switch (gcHandle.Target) { case ImGuiUserTexture userTexture: - // avoid disposing our string output bitmap here - if (userTexture.Bitmap != _stringOutput) + // only dispose anything not cached somewhere + if (userTexture.Bitmap != _stringOutput + && !_resourceCache.TextureCache.ContainsKey(userTexture.Bitmap)) { userTexture.Bitmap.Dispose(); }