Skip to content
Snippets Groups Projects
Commit 3c0469cb authored by Ruslan Teliuk's avatar Ruslan Teliuk
Browse files

Merged in ruslantproductengine/viewer-cougar-4cr-5 (pull request #59)


SL-11435 When ALM is enabled, Depth mode shots are broken when snapshot size is set to anything above current window size

Approved-by: default avatarSimon Linden <simon@lindenlab.com>
Approved-by: default avatarAndrey Lihatskiy <andreylproductengine@lindenlab.com>
parents f69db261 9c966e51
No related branches found
No related tags found
No related merge requests found
......@@ -784,6 +784,7 @@ void LLFloaterSnapshot::Impl::onCommitLayerTypes(LLUICtrl* ctrl, void*data)
previewp->setSnapshotBufferType((LLSnapshotModel::ESnapshotLayerType)combobox->getCurrentIndex());
}
view->impl->checkAutoSnapshot(previewp, TRUE);
previewp->updateSnapshot(TRUE, TRUE);
}
}
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment