Skip to content
Snippets Groups Projects
Commit 515db9c3 authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-7325 Fixed empty cached image being used instead of fetching

parent 52a96437
No related branches found
No related tags found
No related merge requests found
...@@ -2089,7 +2089,9 @@ bool LLViewerFetchedTexture::updateFetch() ...@@ -2089,7 +2089,9 @@ bool LLViewerFetchedTexture::updateFetch()
{ {
make_request = false; make_request = false;
} }
else if(mCachedRawImage.notNull() && (current_discard < 0 || current_discard > mCachedRawDiscardLevel)) else if(mCachedRawImage.notNull() // can be empty
&& mCachedRawImageReady
&& (current_discard < 0 || current_discard > mCachedRawDiscardLevel))
{ {
make_request = false; make_request = false;
switchToCachedImage(); //use the cached raw data first switchToCachedImage(); //use the cached raw data first
......
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