diff --git a/app/streaming/video/ffmpeg-renderers/vt_metal.mm b/app/streaming/video/ffmpeg-renderers/vt_metal.mm index 57cc544b..2852d437 100644 --- a/app/streaming/video/ffmpeg-renderers/vt_metal.mm +++ b/app/streaming/video/ffmpeg-renderers/vt_metal.mm @@ -324,7 +324,7 @@ public: pipelineDesc.colorAttachments[0].destinationAlphaBlendFactor = MTLBlendFactorOneMinusSourceAlpha; [m_OverlayPipelineState release]; m_OverlayPipelineState = [m_MetalLayer.device newRenderPipelineStateWithDescriptor:pipelineDesc error:nullptr]; - if (!m_VideoPipelineState) { + if (!m_OverlayPipelineState) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to create overlay pipeline state"); return false;