From 24c634434520f5c2a50f9dd1d23e661e28a41a15 Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Wed, 14 Nov 2018 16:41:16 +0100 Subject: [PATCH] vikTextOverlay: Use correct layout in attachement descriptor. Fixes validation warning and bug on Wayland and modern Intel. --- vitamin-k/render/vikTextOverlay.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vitamin-k/render/vikTextOverlay.hpp b/vitamin-k/render/vikTextOverlay.hpp index 0777e26..701d110 100644 --- a/vitamin-k/render/vikTextOverlay.hpp +++ b/vitamin-k/render/vikTextOverlay.hpp @@ -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 }, { -- 2.45.2