mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 09:18:40 +12:00
vk: Also discard background if window is too small in vertical axis
This commit is contained in:
parent
ea8bdda9a3
commit
e7537cded5
1 changed files with 1 additions and 1 deletions
|
@ -3028,7 +3028,7 @@ void VKGSRender::flip(int buffer)
|
||||||
VkImageLayout target_layout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR;
|
VkImageLayout target_layout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR;
|
||||||
VkImageSubresourceRange range = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1 };
|
VkImageSubresourceRange range = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1 };
|
||||||
|
|
||||||
if (aspect_ratio.x)
|
if (aspect_ratio.x || aspect_ratio.y)
|
||||||
{
|
{
|
||||||
VkClearColorValue clear_black {};
|
VkClearColorValue clear_black {};
|
||||||
vk::change_image_layout(*m_current_command_buffer, target_image, VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, range);
|
vk::change_image_layout(*m_current_command_buffer, target_image, VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, range);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue