Use a reasonable default for unspecified YUV colorspace
This commit is contained in:
parent
240158f3e8
commit
c3e4481d56
8 changed files with 138 additions and 87 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue