diff options
| -rw-r--r-- | indra/newview/llviewertexturelist.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index b07957a492..ae723b4068 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -910,7 +910,8 @@ void LLViewerTextureList::updateImageDecodePriority(LLViewerFetchedTexture* imag          U32 face_count = 0;          // get adjusted bias based on image resolution -        F32 max_discard = F32(imagep->getMaxDiscardLevel()); +        LLImageGL* img = imagep->getGLTexture(); +        F32 max_discard = F32(img ? img->getMaxDiscardLevel() : MAX_DISCARD_LEVEL);          F32 bias = llclamp(max_discard - 2.f, 1.f, LLViewerTexture::sDesiredDiscardBias);          // convert bias into a vsize scaler | 
