未验证 提交 b0307391 编写于 作者: J Jim 提交者: GitHub

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

libobs-opengl: Lock Mac parent context during present
......@@ -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];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册