24c634434520f5c2a50f9dd1d23e661e28a41a15 — Lubosz Sarnecki 1 year, 26 days ago 6d5c86f
vikTextOverlay: Use correct layout in attachement descriptor.

Fixes validation warning and bug on Wayland and modern Intel.
1 files changed, 1 insertions(+), 1 deletions(-)

M vitamin-k/render/vikTextOverlay.hpp
M vitamin-k/render/vikTextOverlay.hpp => vitamin-k/render/vikTextOverlay.hpp +1 -1
@@ 569,7 569,7 @@ class TextOverlay {
         .storeOp = VK_ATTACHMENT_STORE_OP_STORE,
         .stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE,
         .stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE,
-        .initialLayout = VK_IMAGE_LAYOUT_UNDEFINED,
+        .initialLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
         .finalLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR
       },
       {