Merge pull request #2742 from Themaister/master

Vulkan: Set alphaBlendOp correctly.
This commit is contained in:
Twinaphex 2016-02-21 13:43:18 +01:00
commit 1b4318d89b

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);