diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-11-14 20:41:39 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-11-21 22:12:12 +0200 |
commit | 53e958a2638705572ed7dbf61369d92b332c4b60 (patch) | |
tree | ac1672265e074a61abd7c2a068451e5dd8590cec /indra/newview | |
parent | f3b8565d212a29a04082d65fc45ab0aa48af3e64 (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.
Diffstat (limited to 'indra/newview')
-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); } } |