diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/cocoa-cb/video_layer.swift | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |