summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/llfloater360capture.cpp4
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;
}