mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-19 09:48:14 +00:00
Use a reasonable default for unspecified YUV colorspace
This commit is contained in:
@@ -680,7 +680,7 @@ static int GL_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture, SDL_Pr
|
||||
data->shader = SHADER_NV21_RA;
|
||||
}
|
||||
}
|
||||
data->shader_params = SDL_GetYCbCRtoRGBConversionMatrix(texture->colorspace);
|
||||
data->shader_params = SDL_GetYCbCRtoRGBConversionMatrix(texture->colorspace, texture->w, texture->h, 8);
|
||||
if (!data->shader_params) {
|
||||
return SDL_SetError("Unsupported YUV colorspace");
|
||||
}
|
||||
|
Reference in New Issue
Block a user