mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
from@rextimmy: reports the same texture used with 2 conflicting textureProfiles (flipping back and forth causes duplicates)
This commit is contained in:
parent
a45a55ad6e
commit
ee14bb923e
1 changed files with 2 additions and 0 deletions
|
|
@ -254,6 +254,8 @@ GFXTextureObject *GFXTextureManager::_lookupTexture( const char *hashName, const
|
||||||
//compare just the profile flags and not the entire profile, names could be different but otherwise identical flags
|
//compare just the profile flags and not the entire profile, names could be different but otherwise identical flags
|
||||||
if (ret && (ret->mProfile->compareFlags(*profile)))
|
if (ret && (ret->mProfile->compareFlags(*profile)))
|
||||||
return ret;
|
return ret;
|
||||||
|
else if (ret)
|
||||||
|
Con::warnf("GFXTextureManager::_lookupTexture: Cached texture %s has a different profile flag", hashName);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue