VulkanHostDisplay: Fix incorrect screenshot size rendering when specified

This commit is contained in:
Connor McLaughlin 2021-04-28 02:37:14 +10:00
parent 6767fa1e5f
commit 67adc986ab
1 changed files with 1 additions and 2 deletions

View File

@ -693,8 +693,7 @@ bool VulkanHostDisplay::RenderScreenshot(u32 width, u32 height, std::vector<u32>
tex.TransitionToLayout(g_vulkan_context->GetCurrentCommandBuffer(), VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL);
const auto [left, top, draw_width, draw_height] =
CalculateDrawRect(GetWindowWidth(), GetWindowHeight(), m_display_top_margin);
const auto [left, top, draw_width, draw_height] = CalculateDrawRect(width, height, 0);
if (!m_post_processing_chain.IsEmpty())
{