diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-11-14 20:41:39 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-11-14 20:44:07 +0200 |
commit | bacdab30064157c305d45841964ab491906256d0 (patch) | |
tree | c1515e3e2864390f714e1a8ce5febbebd827d4fc | |
parent | 365792422612f391d175e21c7162d536d4a07647 (diff) |
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.
-rw-r--r-- | indra/newview/llthumbnailctrl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/llthumbnailctrl.cpp b/indra/newview/llthumbnailctrl.cpp index 78204204af..b558c249cb 100644 --- a/indra/newview/llthumbnailctrl.cpp +++ b/indra/newview/llthumbnailctrl.cpp @@ -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); } } |