From bacdab30064157c305d45841964ab491906256d0 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Tue, 14 Nov 2023 20:41:39 +0200 Subject: 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. --- indra/newview/llthumbnailctrl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'indra') 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); } } -- cgit v1.2.3