Skip to content

Commit 7184a1c

Browse files
Vulkan: Fix HDR pipeline blend factor for correct text rendering (libretro#18697)
Change srcColorBlendFactor from VK_BLEND_FACTOR_ONE to VK_BLEND_FACTOR_SRC_ALPHA for proper alpha blending of text and UI elements in the HDR pipeline.
1 parent 01bfe66 commit 7184a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gfx/drivers/vulkan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2668,7 +2668,7 @@ static void vulkan_init_pipelines(vk_t *vk)
26682668
/* HDR pipeline. */
26692669
blend_attachment.blendEnable = VK_TRUE;
26702670

2671-
blend_attachment.srcColorBlendFactor = VK_BLEND_FACTOR_ONE;
2671+
blend_attachment.srcColorBlendFactor = VK_BLEND_FACTOR_SRC_ALPHA;
26722672
blend_attachment.dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
26732673

26742674
/* HDR pipeline. */

0 commit comments

Comments
 (0)