mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed invalid entry into mTextureMap when loading by address
This commit is contained in:
parent
cce1611da5
commit
0a1d3c8486
1 changed files with 1 additions and 1 deletions
|
@ -2195,7 +2195,7 @@ Texture* DXRenderDevice::LoadTexture(const StringImpl& fileName, int flags)
|
||||||
pathEx += ":add";
|
pathEx += ":add";
|
||||||
|
|
||||||
DXTexture* aTexture = NULL;
|
DXTexture* aTexture = NULL;
|
||||||
if (mTextureMap.TryGetValue(pathEx, &aTexture))
|
if ((!fileName.StartsWith('@')) && (mTextureMap.TryGetValue(pathEx, &aTexture)))
|
||||||
{
|
{
|
||||||
aTexture->AddRef();
|
aTexture->AddRef();
|
||||||
return aTexture;
|
return aTexture;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue