diff options
| author | Erik Kundiman <erik@megapahit.org> | 2026-08-27 09:45:06 +0800 |
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2026-08-27 09:45:06 +0800 |
| commit | 7d8156bc6d4dd66eb2eacb34d5e9160a687b15be (patch) | |
| tree | 08e737eb135cc88f293197a0f8eb22cc62351b3e /indra/newview/llviewerwindow.cpp | |
| parent | a8636720129952c10cf49ab80da21bf8b340b96c (diff) | |
| parent | d5f5fc3bb496176a9ccf91c09bb25948a8ac6a94 (diff) | |
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
| -rw-r--r-- | indra/newview/llviewerwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 488b551e36..ceea381e06 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -5104,6 +5104,7 @@ bool LLViewerWindow::rawSnapshot(LLImageRaw *raw, S32 image_width, S32 image_hei // if not showing ui, use full window to render world view updateWorldViewRect(!show_ui); + gResizeScreenTexture = false; // Copy screen to a buffer // crop sides or top and bottom, if taking a snapshot of different aspect ratio @@ -5135,8 +5136,7 @@ bool LLViewerWindow::rawSnapshot(LLImageRaw *raw, S32 image_width, S32 image_hei F32 scale_factor = 1.0f ; if (!keep_window_aspect || (image_width > window_width) || (image_height > window_height)) { - if ((image_width <= gGLManager.mGLMaxTextureSize && image_height <= gGLManager.mGLMaxTextureSize) && - (image_width > window_width || image_height > window_height) && LLPipeline::sRenderDeferred && !show_ui) + if ((image_width <= gGLManager.mGLMaxTextureSize && image_height <= gGLManager.mGLMaxTextureSize) && LLPipeline::sRenderDeferred && !show_ui) { U32 color_fmt = type == LLSnapshotModel::SNAPSHOT_TYPE_DEPTH ? GL_DEPTH_COMPONENT : GL_RGBA; if (scratch_space.allocate(image_width, image_height, color_fmt, true)) @@ -5144,7 +5144,7 @@ bool LLViewerWindow::rawSnapshot(LLImageRaw *raw, S32 image_width, S32 image_hei original_width = gPipeline.mRT->deferredScreen.getWidth(); original_height = gPipeline.mRT->deferredScreen.getHeight(); - if (gPipeline.allocateScreenBuffer(image_width, image_height)) + if (gPipeline.allocateScreenBuffer(image_width, image_height, 1)) { window_width = image_width; window_height = image_height; @@ -5417,7 +5417,7 @@ bool LLViewerWindow::simpleSnapshot(LLImageRaw* raw, S32 image_width, S32 image_ U32 color_fmt = GL_RGBA; if (scratch_space.allocate(image_width, image_height, color_fmt, true)) { - if (gPipeline.allocateScreenBuffer(image_width, image_height)) + if (gPipeline.allocateScreenBuffer(image_width, image_height, 1)) { mWorldViewRectRaw.set(0, image_height, image_width, 0); |
