Worked around texture loading bug
--HG-- extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4076
This commit is contained in:
@@ -52,8 +52,10 @@ KRTexture *KRTextureManager::loadTexture(const char *szName, const char *szPath)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!pTexture->createGLTexture()) {
|
if(!pTexture->createGLTexture()) {
|
||||||
delete pTexture;
|
if(!pTexture->createGLTexture()) { // FINDME - HACK! The first texture fails with 0x501 return code but loads on second try
|
||||||
return NULL;
|
delete pTexture;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string lowerName = szName;
|
std::string lowerName = szName;
|
||||||
|
|||||||
Reference in New Issue
Block a user