Set alphaBlendOp correctly.

This commit is contained in:
Hans-Kristian Arntzen 2016-02-21 13:40:19 +01:00
parent b87106e61a
commit f09338b1b8

View File

@ -323,7 +323,7 @@ static void vulkan_init_pipelines(vk_t *vk)
blend_attachment.colorBlendOp = VK_BLEND_OP_ADD;
blend_attachment.srcAlphaBlendFactor = VK_BLEND_FACTOR_SRC_ALPHA;
blend_attachment.dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
blend_attachment.colorBlendOp = VK_BLEND_OP_ADD;
blend_attachment.alphaBlendOp = VK_BLEND_OP_ADD;
vkCreateGraphicsPipelines(vk->context->device, vk->pipelines.cache,
1, &pipe, NULL, &vk->pipelines.alpha_blend);