mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-16 17:58:27 +00:00
Fixed the colorspace for YUV textures using native RGB representations
Fixes https://github.com/libsdl-org/SDL/issues/10624
This commit is contained in:
parent
efc98062af
commit
16fb8e54cb
3 changed files with 7 additions and 4 deletions
|
@ -1453,7 +1453,7 @@ SDL_Texture *SDL_CreateTextureWithProperties(SDL_Renderer *renderer, SDL_Propert
|
|||
|
||||
if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) {
|
||||
#if SDL_HAVE_YUV
|
||||
texture->yuv = SDL_SW_CreateYUVTexture(format, w, h);
|
||||
texture->yuv = SDL_SW_CreateYUVTexture(texture->format, texture->colorspace, w, h);
|
||||
#else
|
||||
SDL_SetError("SDL not built with YUV support");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue