1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Fixed invalid entry into mTextureMap when loading by address

This commit is contained in:
Brian Fiete 2025-02-01 14:03:34 -08:00
parent cce1611da5
commit 0a1d3c8486

View file

@ -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;