GPU/Vulkan: Fix inverted transparency

Fixes FF7 menu, map screen in Porsche Challenge.
This commit is contained in:
Connor McLaughlin 2020-06-20 20:22:20 +10:00
parent a08c398d4b
commit fed53b565f
1 changed files with 4 additions and 1 deletions

View File

@ -636,7 +636,10 @@ bool GPU_HW_Vulkan::CompilePipelines()
(depth_test != 0) ? VK_COMPARE_OP_GREATER_OR_EQUAL : VK_COMPARE_OP_ALWAYS);
gpbuilder.SetNoBlendingState();
if (static_cast<TransparencyMode>(transparency_mode) != TransparencyMode::Disabled ||
if ((static_cast<TransparencyMode>(transparency_mode) != TransparencyMode::Disabled &&
(static_cast<BatchRenderMode>(render_mode) != BatchRenderMode::TransparencyDisabled &&
static_cast<BatchRenderMode>(render_mode) != BatchRenderMode::OnlyOpaque)) ||
m_texture_filtering)
{
// TODO: Check dual-source blend support here.