summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-12-16 18:34:28 +0800
committerErik Kundiman <erik@megapahit.org>2023-12-16 18:34:28 +0800
commit956bd1fa85131be204ce023e61f64b2df99b666b (patch)
tree192d9576f3b4e4007c04ebe56781a5482bbf27a9 /indra
parent91b49c8bfa061f3d3b8601d5398b1889a9e31850 (diff)
Revert "SL-20411 Fix texture preview images not always loading"
This reverts commit 53e958a2638705572ed7dbf61369d92b332c4b60.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llthumbnailctrl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llthumbnailctrl.cpp b/indra/newview/llthumbnailctrl.cpp
index b558c249cb..78204204af 100644
--- a/indra/newview/llthumbnailctrl.cpp
+++ b/indra/newview/llthumbnailctrl.cpp
@@ -241,8 +241,9 @@ void LLThumbnailCtrl::initImage()
mTexturep->forceToSaveRawImage(0);
- S32 desired_draw_width = MAX_IMAGE_SIZE;
- S32 desired_draw_height = MAX_IMAGE_SIZE;
+ S32 desired_draw_width = mTexturep->getWidth();
+ S32 desired_draw_height = mTexturep->getHeight();
+
mTexturep->setKnownDrawSize(desired_draw_width, desired_draw_height);
}
}