Skip to content
Snippets Groups Projects
Commit 6c231ba8 authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-8395 Rollback part of SL-711 to fix related crashes

parent 5f890af7
No related branches found
No related tags found
No related merge requests found
......@@ -2027,13 +2027,15 @@ bool LLTextureCache::writeToFastCache(S32 id, LLPointer<LLImageRaw> raw, S32 dis
if(w * h *c > 0) //valid
{
//make a duplicate to keep the original raw image untouched.
raw = raw->scaled(w, h);
raw = raw->duplicate();
if (raw->isBufferInvalid())
{
LL_WARNS() << "Invalid image duplicate buffer" << LL_ENDL;
return false;
}
raw->scale(w, h);
discardlevel += i ;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment