demos: fix color attachment store op
Should be STORE, not DONT_CARE.
diff --git a/demos/cube.c b/demos/cube.c
index 5a303e3..932e36c 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -1186,7 +1186,7 @@
VkResult U_ASSERT_ONLY err;
const VkImageLayout color_layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
const VkAttachmentLoadOp color_load_op = VK_ATTACHMENT_LOAD_OP_CLEAR;
- const VkAttachmentStoreOp color_store_op = VK_ATTACHMENT_STORE_OP_DONT_CARE;
+ const VkAttachmentStoreOp color_store_op = VK_ATTACHMENT_STORE_OP_STORE;
const VkRenderPassCreateInfo rp_info = {
.sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO,
.pNext = NULL,
diff --git a/demos/tri.c b/demos/tri.c
index d1b54f8..8276c58 100644
--- a/demos/tri.c
+++ b/demos/tri.c
@@ -842,7 +842,7 @@
VkResult U_ASSERT_ONLY err;
const VkImageLayout color_layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
const VkAttachmentLoadOp color_load_op = VK_ATTACHMENT_LOAD_OP_CLEAR;
- const VkAttachmentStoreOp color_store_op = VK_ATTACHMENT_STORE_OP_DONT_CARE;
+ const VkAttachmentStoreOp color_store_op = VK_ATTACHMENT_STORE_OP_STORE;
const VkRenderPassCreateInfo rp_info = {
.sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO,
.pNext = NULL,