summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2020-04-21 13:36:03 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2020-04-21 13:36:03 +0300
commit9aa7485d61452bbaa4644cb15fa60f922d7d1e5b (patch)
tree3355a9281bc99d50d68ace1990af867b4e391f5a
parenta4b1c0330a6a8e43bf4c41c5b0c836bd1dee2268 (diff)
SL-13075 Fixed the uploaded model preview size
-rw-r--r--indra/newview/llfloatermodelpreview.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}