Pārlūkot izejas kodu

Merge pull request #2086 from Azaezel/ProfileProblemPing

textureProfile conflict reporting
Areloch 8 gadi atpakaļ
vecāks
revīzija
84ec076f97
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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
    //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;
 }
 }