Retropedaling on SH-4030 fix that crashes my viewer on loggin

meow-7.2.2
Merov Linden 2014-06-17 15:43:51 -07:00
parent e3e1a527cc
commit 7d7d042691
1 changed files with 2 additions and 1 deletions

View File

@ -2593,7 +2593,8 @@ bool LLTextureFetch::createRequest(FTType f_type, const std::string& url, const
S32 desired_size;
std::string exten = gDirUtilp->getExtension(url);
if (f_type == FTT_SERVER_BAKE)
//if (f_type == FTT_SERVER_BAKE)
if ((f_type == FTT_SERVER_BAKE) && !url.empty() && !exten.empty() && (LLImageBase::getCodecFromExtension(exten) != IMG_CODEC_J2C))
{
// SH-4030: This case should be redundant with the following one, just
// breaking it out here to clarify that it's intended behavior.