Fix incorrect failure check

This commit is contained in:
Cameron Gutman committed 2026-05-15 23:23:36 -05:00
1 parent 073f892bb1
commit 87c3179f77
1 file changed
+1 -1
@@ -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;