From 0a1d3c8486c1a66b26b8c34dbc388bda13b99fe9 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 1 Feb 2025 14:03:34 -0800 Subject: [PATCH] Fixed invalid entry into mTextureMap when loading by address --- BeefySysLib/platform/win/DXRenderDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BeefySysLib/platform/win/DXRenderDevice.cpp b/BeefySysLib/platform/win/DXRenderDevice.cpp index 729d0453..096265a7 100644 --- a/BeefySysLib/platform/win/DXRenderDevice.cpp +++ b/BeefySysLib/platform/win/DXRenderDevice.cpp @@ -2195,7 +2195,7 @@ Texture* DXRenderDevice::LoadTexture(const StringImpl& fileName, int flags) pathEx += ":add"; DXTexture* aTexture = NULL; - if (mTextureMap.TryGetValue(pathEx, &aTexture)) + if ((!fileName.StartsWith('@')) && (mTextureMap.TryGetValue(pathEx, &aTexture))) { aTexture->AddRef(); return aTexture;