From d586af2f1d2a531659d4a2925e9206bfbcbaa549 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 28 May 2021 08:28:21 -0400 Subject: [PATCH] Fixed image caching issue --- BeefySysLib/platform/win/DXRenderDevice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BeefySysLib/platform/win/DXRenderDevice.cpp b/BeefySysLib/platform/win/DXRenderDevice.cpp index 12619328..4bc3bf56 100644 --- a/BeefySysLib/platform/win/DXRenderDevice.cpp +++ b/BeefySysLib/platform/win/DXRenderDevice.cpp @@ -254,6 +254,9 @@ DXTexture::DXTexture() DXTexture::~DXTexture() { + if (!mPath.IsEmpty()) + ((DXRenderDevice*)mRenderDevice)->mTextureMap.Remove(mPath); + //OutputDebugStrF("DXTexture::~DXTexture %@\n", this); delete mImageData; if (mD3DResourceView != NULL)