mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-02 15:45:42 -04:00
GPU/Vulkan: Fix reverse subtract blending with texture filtering
Fixes pointer in Final Fantasy VII with texture filtering.
This commit is contained in:
parent
8f54711c72
commit
421c65ea69
@ -683,7 +683,9 @@ bool GPU_HW_Vulkan::CompilePipelines()
|
|||||||
gpbuilder.SetBlendAttachment(
|
gpbuilder.SetBlendAttachment(
|
||||||
0, true, VK_BLEND_FACTOR_ONE,
|
0, true, VK_BLEND_FACTOR_ONE,
|
||||||
m_supports_dual_source_blend ? VK_BLEND_FACTOR_SRC1_ALPHA : VK_BLEND_FACTOR_SRC_ALPHA,
|
m_supports_dual_source_blend ? VK_BLEND_FACTOR_SRC1_ALPHA : VK_BLEND_FACTOR_SRC_ALPHA,
|
||||||
(static_cast<TransparencyMode>(transparency_mode) == TransparencyMode::BackgroundMinusForeground) ?
|
(static_cast<TransparencyMode>(transparency_mode) == TransparencyMode::BackgroundMinusForeground &&
|
||||||
|
static_cast<BatchRenderMode>(render_mode) != BatchRenderMode::TransparencyDisabled &&
|
||||||
|
static_cast<BatchRenderMode>(render_mode) != BatchRenderMode::OnlyOpaque) ?
|
||||||
VK_BLEND_OP_REVERSE_SUBTRACT :
|
VK_BLEND_OP_REVERSE_SUBTRACT :
|
||||||
VK_BLEND_OP_ADD,
|
VK_BLEND_OP_ADD,
|
||||||
VK_BLEND_FACTOR_ONE, VK_BLEND_FACTOR_ZERO, VK_BLEND_OP_ADD);
|
VK_BLEND_FACTOR_ONE, VK_BLEND_FACTOR_ZERO, VK_BLEND_OP_ADD);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user