mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-02 01:47:41 +00:00
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.
This commit is contained in:
parent
122c3e6a81
commit
ea8df46575
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue