Skip to content

Commit 5f5a0be

Browse files
committed
Fix HDR on overlays
1 parent b35a4c2 commit 5f5a0be

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

gfx/drivers/vulkan.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8052,7 +8052,13 @@ static void vulkan_render_overlay(vk_t *vk, unsigned width,
80528052
{
80538053
int idx = base + i;
80548054
struct vk_texture *tex = &vk->overlay.images[idx];
8055+
#ifdef VULKAN_HDR_SWAPCHAIN
8056+
VkPipeline pipeline = (vk->flags & VK_FLAG_SDR_PIPELINE)
8057+
? vk->display.pipelines_sdr[3]
8058+
: vk->display.pipelines[3]; /* Strip with blend */
8059+
#else
80558060
VkPipeline pipeline = vk->display.pipelines[3]; /* Strip with blend */
8061+
#endif
80568062

80578063
if (tex->image)
80588064
vulkan_transition_texture(vk, vk->cmd, tex);

0 commit comments

Comments
 (0)