diff options
author | ruslantproductengine <ruslantproductengine@lindenlab.com> | 2019-07-11 20:30:30 +0300 |
---|---|---|
committer | ruslantproductengine <ruslantproductengine@lindenlab.com> | 2019-07-11 20:30:30 +0300 |
commit | 9c966e51daaec60afe6338bc5a9d0a3579050e24 (patch) | |
tree | fe8efa3f05a1750087d44a7ebc661a2b504f008f /indra/newview/llviewerwindow.cpp | |
parent | 293d186190d34b537a051397266b04fb1b5bb786 (diff) |
SL-11435 When ALM is enabled, Depth mode shots are broken when snapshot size is set to anything above current window size
- fixed bug described in the ticket
- fixed bug with UI (when user change the layer type (color/depth))
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
-rw-r--r-- | indra/newview/llviewerwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 963952fdb1..e4f3b9bae4 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -4620,7 +4620,7 @@ BOOL LLViewerWindow::rawSnapshot(LLImageRaw *raw, S32 image_width, S32 image_hei if ((image_width <= gGLManager.mGLMaxTextureSize && image_height <= gGLManager.mGLMaxTextureSize) && (image_width > window_width || image_height > window_height) && LLPipeline::sRenderDeferred && !show_ui) { - if (scratch_space.allocate(image_width, image_height, GL_RGBA, true, true)) + if (scratch_space.allocate(image_width, image_height, GL_DEPTH_COMPONENT, true, true)) { original_width = gPipeline.mDeferredScreen.getWidth(); original_height = gPipeline.mDeferredScreen.getHeight(); |