Skip to content

Commit 53e958a

Browse files
committed
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.
1 parent f3b8565 commit 53e958a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

indra/newview/llthumbnailctrl.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,8 @@ void LLThumbnailCtrl::initImage()
241241

242242
mTexturep->forceToSaveRawImage(0);
243243

244-
S32 desired_draw_width = mTexturep->getWidth();
245-
S32 desired_draw_height = mTexturep->getHeight();
246-
244+
S32 desired_draw_width = MAX_IMAGE_SIZE;
245+
S32 desired_draw_height = MAX_IMAGE_SIZE;
247246
mTexturep->setKnownDrawSize(desired_draw_width, desired_draw_height);
248247
}
249248
}

0 commit comments

Comments
 (0)