mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-15 21:22:40 +00:00
Remove superfluous colorspace check
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user