diff --git a/libobs-opengl/gl-cocoa.m b/libobs-opengl/gl-cocoa.m index 61cf46a7c..dd2a74969 100644 --- a/libobs-opengl/gl-cocoa.m +++ b/libobs-opengl/gl-cocoa.m @@ -292,8 +292,6 @@ void device_present(gs_device_t *device) glFlush(); [NSOpenGLContext clearCurrentContext]; - CGLUnlockContext([device->plat->context CGLContextObj]); - CGLLockContext([device->cur_swap->wi->context CGLContextObj]); [device->cur_swap->wi->context makeCurrentContext]; @@ -309,8 +307,6 @@ void device_present(gs_device_t *device) CGLUnlockContext([device->cur_swap->wi->context CGLContextObj]); - CGLLockContext([device->plat->context CGLContextObj]); - [device->plat->context makeCurrentContext]; }