Remove superfluous colorspace check
This commit is contained in:
parent
abf2a14ee6
commit
31eddd8da0
1 changed files with 1 additions and 1 deletions
|
|
@ -376,7 +376,7 @@ ReadbackRetry:
|
||||||
// Because the specific YUV color conversion shader is established at
|
// Because the specific YUV color conversion shader is established at
|
||||||
// texture creation for most SDL render backends, we need to recreate
|
// texture creation for most SDL render backends, we need to recreate
|
||||||
// the texture when the colorspace changes.
|
// the texture when the colorspace changes.
|
||||||
if (frame->colorspace != m_ColorSpace && frame->colorspace != AVCOL_SPC_UNSPECIFIED) {
|
if (frame->colorspace != m_ColorSpace) {
|
||||||
if (m_Texture != nullptr) {
|
if (m_Texture != nullptr) {
|
||||||
SDL_DestroyTexture(m_Texture);
|
SDL_DestroyTexture(m_Texture);
|
||||||
m_Texture = nullptr;
|
m_Texture = nullptr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue