浏览代码

from@rextimmy: reports the same texture used with 2 conflicting textureProfiles (flipping back and forth causes duplicates)

Azaezel 8 年之前
父节点
当前提交
ee14bb923e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Engine/source/gfx/gfxTextureManager.cpp

+ 2 - 0
Engine/source/gfx/gfxTextureManager.cpp

@@ -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
    if (ret && (ret->mProfile->compareFlags(*profile)))
       return ret;
+   else if (ret)
+      Con::warnf("GFXTextureManager::_lookupTexture: Cached texture %s has a different profile flag", hashName);
 
    return NULL;
 }