From 956bd1fa85131be204ce023e61f64b2df99b666b Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Sat, 16 Dec 2023 18:34:28 +0800 Subject: Revert "SL-20411 Fix texture preview images not always loading" This reverts commit 53e958a2638705572ed7dbf61369d92b332c4b60. --- indra/newview/llthumbnailctrl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'indra/newview/llthumbnailctrl.cpp') 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); } } -- cgit v1.2.3