From 3e6acbe5f7fabf4e0149f7fb5af7e299a98f4cc7 Mon Sep 17 00:00:00 2001 From: saschawillems Date: Sun, 5 Jun 2016 17:46:28 +0200 Subject: [PATCH] Correct color attachment image layout transition aspect flags --- offscreen/offscreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offscreen/offscreen.cpp b/offscreen/offscreen.cpp index 51565375..5034fe1b 100644 --- a/offscreen/offscreen.cpp +++ b/offscreen/offscreen.cpp @@ -345,7 +345,7 @@ public: vkTools::setImageLayout( offScreenCmdBuffer, offScreenFrameBuf.color.image, - VK_IMAGE_ASPECT_DEPTH_BIT, + VK_IMAGE_ASPECT_COLOR_BIT, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL); @@ -372,7 +372,7 @@ public: vkTools::setImageLayout( offScreenCmdBuffer, offScreenFrameBuf.color.image, - VK_IMAGE_ASPECT_DEPTH_BIT, + VK_IMAGE_ASPECT_COLOR_BIT, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL); @@ -925,7 +925,7 @@ public: // has been finished // This is necessary as an implementation may start both // command buffers at the same time, there is no guarantee - // that commnad buffers will be executed in the order they + // that command buffers will be executed in the order they // have been submitted by the application // Offscreen rendering