From 9aa7485d61452bbaa4644cb15fa60f922d7d1e5b Mon Sep 17 00:00:00 2001 From: Andrey Lihatskiy Date: Tue, 21 Apr 2020 13:36:03 +0300 Subject: SL-13075 Fixed the uploaded model preview size --- indra/newview/llfloatermodelpreview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra') diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 99f5fa35cd..a27272fbfe 100644 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -455,11 +455,11 @@ void LLFloaterModelPreview::initModelPreview() S32 max_width = llmin(gSavedSettings.getS32("PreviewRenderSize"), (S32)gPipeline.mScreenWidth); S32 max_height = llmin(gSavedSettings.getS32("PreviewRenderSize"), (S32)gPipeline.mScreenHeight); - while ((tex_width << 1) <= max_width) + while ((tex_width << 1) < max_width) { tex_width <<= 1; } - while ((tex_height << 1) <= max_height) + while ((tex_height << 1) < max_height) { tex_height <<= 1; } -- cgit v1.2.3