From ea8df4657535812c9f7ebdfd066d26ac118718e9 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 17 Jun 2024 17:27:14 -0700 Subject: [PATCH] We don't support directly rendering to PQ swap chains Normally this would be done by creating a PQ swap chain and a linear SRGB render target and doing blending operations in linear space and then final conversion to PQ HDR, but we're going to short-circuit all of that and just support linear SRGB output directly. --- src/render/vulkan/SDL_render_vulkan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/vulkan/SDL_render_vulkan.c b/src/render/vulkan/SDL_render_vulkan.c index 67e5b1aada..e193124244 100644 --- a/src/render/vulkan/SDL_render_vulkan.c +++ b/src/render/vulkan/SDL_render_vulkan.c @@ -4057,8 +4057,8 @@ static int VULKAN_CreateRenderer(SDL_Renderer *renderer, SDL_Window *window, SDL SDL_SetupRendererColorspace(renderer, create_props); if (renderer->output_colorspace != SDL_COLORSPACE_SRGB && - renderer->output_colorspace != SDL_COLORSPACE_SRGB_LINEAR && - renderer->output_colorspace != SDL_COLORSPACE_HDR10) { + renderer->output_colorspace != SDL_COLORSPACE_SRGB_LINEAR + /*&& renderer->output_colorspace != SDL_COLORSPACE_HDR10*/) { return SDL_SetError("Unsupported output colorspace"); }