summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-02-06 12:59:34 -0500
committerJonathan Bradley <jcb@pikum.xyz>2025-02-06 14:50:34 -0500
commit4193a3e6c9b8fe7d5f7dff0ad62d0db8c3eb2851 (patch)
tree468d6ebf6c430a49f46ec98267b1ec304a556974 /src/window.cpp
parent4627cccfaa10bd53fe3abb4017a1204f94a25546 (diff)
pke: enable color blending on present pipeline
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 11ce080..ecaea14 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1310,9 +1310,9 @@ void CreatePresentPipeline() {
depthStencilInfo.maxDepthBounds = {};
VkPipelineColorBlendAttachmentState colorBlendAttachment;
- colorBlendAttachment.blendEnable = VK_FALSE;
- colorBlendAttachment.srcColorBlendFactor = VK_BLEND_FACTOR_ONE;
- colorBlendAttachment.dstColorBlendFactor = VK_BLEND_FACTOR_ZERO;
+ colorBlendAttachment.blendEnable = VK_TRUE;
+ colorBlendAttachment.srcColorBlendFactor = VK_BLEND_FACTOR_SRC_ALPHA;
+ colorBlendAttachment.dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
colorBlendAttachment.colorBlendOp = VK_BLEND_OP_ADD;
colorBlendAttachment.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
colorBlendAttachment.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO;