Merge pull request #2854 from jpark37/mac-present-lock

libobs-opengl: Lock Mac parent context during present
master
Jim 2020-05-03 06:24:22 -07:00 committed by GitHub
commit b0307391e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -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];
}