Remove superfluous colorspace check

This commit is contained in:
Cameron Gutman
2022-01-13 01:19:17 -06:00
parent abf2a14ee6
commit 31eddd8da0
@@ -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;