summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-04-12 20:33:38 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2024-04-12 21:53:35 +0300
commit713d443ae89f871761eb305ece18d2cc1c9ac482 (patch)
tree183d776b8add69af1c17346a0f2ef24ecc5ea09f
parent7df1bc9e65a6dd7532ac4a22ea6960cc8d8c9ee8 (diff)
viewer#1081 LLFloaterImagePreview 2048 image upload support
-rw-r--r--indra/newview/llfloaterimagepreview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llfloaterimagepreview.cpp b/indra/newview/llfloaterimagepreview.cpp
index 55516fe168..2a5106f79e 100644
--- a/indra/newview/llfloaterimagepreview.cpp
+++ b/indra/newview/llfloaterimagepreview.cpp
@@ -388,7 +388,7 @@ bool LLFloaterImagePreview::loadImage(const std::string& src_filename)
return false;
}
- raw_image->biasedScaleToPowerOfTwo(1024);
+ raw_image->biasedScaleToPowerOfTwo(LLViewerFetchedTexture::MAX_IMAGE_SIZE_DEFAULT);
mRawImagep = raw_image;
return true;