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.
master
Andrey Kleshchev 2023-11-14 20:41:39 +02:00
parent f3b8565d21
commit 53e958a263
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
}