From c01b0b4c6a9b3865b2eb2f22c47c409cf8a8b4bb Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 29 Jul 2016 18:38:33 -1000 Subject: [PATCH] Vulkan resolveBindTexture fix --- lib/graphicsdev/Vulkan.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/graphicsdev/Vulkan.cpp b/lib/graphicsdev/Vulkan.cpp index 62d763a..053fcb7 100644 --- a/lib/graphicsdev/Vulkan.cpp +++ b/lib/graphicsdev/Vulkan.cpp @@ -2530,8 +2530,8 @@ struct VulkanCommandQueue : IGraphicsCommandQueue else copyInfo.srcOffset.y = ctexture->m_height - rect.location[1] - rect.size[1]; copyInfo.dstOffset = copyInfo.srcOffset; - copyInfo.extent.width = ctexture->m_width; - copyInfo.extent.height = ctexture->m_height; + copyInfo.extent.width = rect.size[0]; + copyInfo.extent.height = rect.size[1]; copyInfo.extent.depth = 1; vk::CmdCopyImage(cmdBuf, ctexture->m_colorTex, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, @@ -2570,8 +2570,8 @@ struct VulkanCommandQueue : IGraphicsCommandQueue else copyInfo.srcOffset.y = ctexture->m_height - rect.location[1] - rect.size[1]; copyInfo.dstOffset = copyInfo.srcOffset; - copyInfo.extent.width = ctexture->m_width; - copyInfo.extent.height = ctexture->m_height; + copyInfo.extent.width = rect.size[0]; + copyInfo.extent.height = rect.size[1]; copyInfo.extent.depth = 1; vk::CmdCopyImage(cmdBuf, ctexture->m_depthTex, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,