mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-19 04:28:58 +00:00
SDL_COLORSPACE_HDR10 is the default colorspace for SDL_PIXELFORMAT_P010 surfaces
This commit is contained in:
parent
4c5584174b
commit
f6c42406cd
1 changed files with 5 additions and 1 deletions
|
|
@ -704,7 +704,11 @@ void SDL_DestroyPixelFormat(SDL_PixelFormat *format)
|
|||
SDL_Colorspace SDL_GetDefaultColorspaceForFormat(Uint32 format)
|
||||
{
|
||||
if (SDL_ISPIXELFORMAT_FOURCC(format)) {
|
||||
return SDL_COLORSPACE_YUV_DEFAULT;
|
||||
if (format == SDL_PIXELFORMAT_P010) {
|
||||
return SDL_COLORSPACE_HDR10;
|
||||
} else {
|
||||
return SDL_COLORSPACE_YUV_DEFAULT;
|
||||
}
|
||||
} else if (SDL_ISPIXELFORMAT_FLOAT(format)) {
|
||||
return SDL_COLORSPACE_SRGB_LINEAR;
|
||||
} else if (SDL_ISPIXELFORMAT_10BIT(format)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue