diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-08-27 19:55:49 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-08-27 19:55:49 +0300 |
commit | 03502fa4973a87a03458f17f49ea6a5371a48b16 (patch) | |
tree | 61bc6e46f2a8602496c899bdfd97f76fa09c80d2 /indra | |
parent | 5003b8ac002793f747c529bf7b5fc71bf702d620 (diff) |
DRTVWR-534: Use minimum Viewer window dimension as image size when deferred rendering is off
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloater360capture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llfloater360capture.cpp b/indra/newview/llfloater360capture.cpp index aa226981aa..87f42cd7f5 100644 --- a/indra/newview/llfloater360capture.cpp +++ b/indra/newview/llfloater360capture.cpp @@ -230,9 +230,9 @@ void LLFloater360Capture::setSourceImageSize() S32 window_width = window_rect.getWidth(); S32 window_height = window_rect.getHeight(); - while (mSourceImageSize > window_width || mSourceImageSize > window_height) + if (mSourceImageSize > window_width || mSourceImageSize > window_height) { - mSourceImageSize /= 2; + mSourceImageSize = llmin(window_width, window_height, mSourceImageSize); LL_INFOS("360Capture") << "Deferred rendering is forcing a smaller capture size: " << mSourceImageSize << LL_ENDL; } |