From 48eab88cfcbe5095db2576698298a9d03eb109ad Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Wed, 24 Feb 2016 19:14:59 -1000 Subject: [PATCH] Update signature of VulkanCommandQueue::resolveBindTexture --- lib/graphicsdev/Vulkan.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/graphicsdev/Vulkan.cpp b/lib/graphicsdev/Vulkan.cpp index e634876..d32614d 100644 --- a/lib/graphicsdev/Vulkan.cpp +++ b/lib/graphicsdev/Vulkan.cpp @@ -2464,12 +2464,12 @@ struct VulkanCommandQueue : IGraphicsCommandQueue m_doPresent = true; } - void resolveBindTexture(ITextureR* texture, const SWindowRect& rect, bool tlOrigin) + void resolveBindTexture(ITextureR* texture, const SWindowRect& rect, bool tlOrigin, bool color, bool depth) { VkCommandBuffer cmdBuf = m_cmdBufs[m_fillBuf]; VulkanTextureR* ctexture = static_cast(texture); - if (ctexture->m_enableShaderColorBinding) + if (color && ctexture->m_enableShaderColorBinding) { if (ctexture == m_boundTarget) SetImageLayout(cmdBuf, ctexture->m_colorTex, VK_IMAGE_ASPECT_COLOR_BIT, @@ -2509,7 +2509,7 @@ struct VulkanCommandQueue : IGraphicsCommandQueue VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL); } - if (ctexture->m_enableShaderDepthBinding) + if (depth && ctexture->m_enableShaderDepthBinding) { if (ctexture == m_boundTarget) SetImageLayout(cmdBuf, ctexture->m_depthTex, VK_IMAGE_ASPECT_DEPTH_BIT,