Skip to content
Snippets Groups Projects
Commit 53e958a2 authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-20411 Fix texture preview images not always loading

Likely happened because some textures had 0 height width initially, but
this is for UI/preview so request maximum either way.
parent f3b8565d
No related branches found
No related tags found
No related merge requests found
......@@ -241,9 +241,8 @@ void LLThumbnailCtrl::initImage()
mTexturep->forceToSaveRawImage(0);
S32 desired_draw_width = mTexturep->getWidth();
S32 desired_draw_height = mTexturep->getHeight();
S32 desired_draw_width = MAX_IMAGE_SIZE;
S32 desired_draw_height = MAX_IMAGE_SIZE;
mTexturep->setKnownDrawSize(desired_draw_width, desired_draw_height);
}
}
......
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