GPU/Vulkan: Fix incorrect srcfactor selection

This commit is contained in:
Connor McLaughlin 2020-06-21 16:24:06 +10:00
parent ce75168238
commit 73cdd676ad

View file

@ -658,7 +658,7 @@ bool GPU_HW_Vulkan::CompilePipelines()
{
gpbuilder.SetBlendAttachment(
0, true, VK_BLEND_FACTOR_ONE,
m_supports_dual_source_blend ? VK_BLEND_FACTOR_SRC_ALPHA : VK_BLEND_FACTOR_SRC1_ALPHA,
m_supports_dual_source_blend ? VK_BLEND_FACTOR_SRC1_ALPHA : VK_BLEND_FACTOR_SRC_ALPHA,
(static_cast<TransparencyMode>(transparency_mode) == TransparencyMode::BackgroundMinusForeground) ?
VK_BLEND_OP_REVERSE_SUBTRACT :
VK_BLEND_OP_ADD,