diff --git a/video/out/cocoa-cb/video_layer.swift b/video/out/cocoa-cb/video_layer.swift index 05f0894159..ed259d04f5 100644 --- a/video/out/cocoa-cb/video_layer.swift +++ b/video/out/cocoa-cb/video_layer.swift @@ -198,6 +198,7 @@ class VideoLayer: CAOpenGLLayer { if !cocoaCB.window.occlusionState.contains(.visible) && neededFlips > 1 && canDrawOffScreen { + CGLSetCurrentContext(cglContext!) draw(cglContext!) display() } else {