FIRE-35081 - Fix crash on load
Reverted added code for the LLFace::switchTexture to update the texture being passed in to use the existing texture boost and max virtual size as the mTexture[ch] may be NULL or invalid due to being deleted.meow-7.2.2
parent
fe125e167b
commit
2802475f05
|
|
@ -386,11 +386,6 @@ void LLFace::switchTexture(U32 ch, LLViewerTexture* new_texture)
|
|||
return;
|
||||
}
|
||||
|
||||
// <FS:minerjr> [FIRE-35081] Blurry prims not changing with graphics settings, not happening with SL Viewer
|
||||
// Need to update the new textures to the old textures boost and max virtual size, so they won't
|
||||
new_texture->setBoostLevel(mTexture[ch]->getBoostLevel());
|
||||
new_texture->addTextureStats(mTexture[ch]->getMaxVirtualSize());
|
||||
// </FS:minerjr> [FIRE-35081]
|
||||
if (ch == LLRender::DIFFUSE_MAP)
|
||||
{
|
||||
if (getViewerObject())
|
||||
|
|
|
|||
Loading…
Reference in New Issue