From f201f2e73eb400b4d61ee8729ce8d392ee98a4fb Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 21 Nov 2021 14:57:45 +0200 Subject: [PATCH] Set color write mask if no blending is used --- source/backends/vulkan/pipelinestate_backend.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/backends/vulkan/pipelinestate_backend.cpp b/source/backends/vulkan/pipelinestate_backend.cpp index 080a4a5d..aa44ba08 100644 --- a/source/backends/vulkan/pipelinestate_backend.cpp +++ b/source/backends/vulkan/pipelinestate_backend.cpp @@ -208,6 +208,11 @@ void VulkanPipelineState::fill_creation_info(vector &buffer) const blend_attachments[i].colorWriteMask = get_vulkan_color_mask(blend->write_mask); } } + else + { + for(unsigned i=0; isType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO; blend_info->attachmentCount = n_color_attachments; -- 2.45.2