Worked around texture loading bug

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4076
This commit is contained in:
kearwood
2012-08-23 19:44:23 +00:00
parent fc45c06281
commit 9077b5a890

View File

@@ -52,9 +52,11 @@ KRTexture *KRTextureManager::loadTexture(const char *szName, const char *szPath)
}
if(!pTexture->createGLTexture()) {
if(!pTexture->createGLTexture()) { // FINDME - HACK! The first texture fails with 0x501 return code but loads on second try
delete pTexture;
return NULL;
}
}
std::string lowerName = szName;
std::transform(lowerName.begin(), lowerName.end(),