Ken Thomases : winemac: Only call -[NSOpenGLContext update] from the main thread.
Module: wine Branch: master Commit: 3deae92a6fe1c2634410fb34a552b7f39fd1adb9 URL: https://source.winehq.org/git/wine.git/?a=commit;h=3deae92a6fe1c2634410fb34a... Author: Ken Thomases <ken(a)codeweavers.com> Date: Wed Mar 11 14:55:53 2020 -0500 winemac: Only call -[NSOpenGLContext update] from the main thread. Signed-off-by: Ken Thomases <ken(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/winemac.drv/cocoa_opengl.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/winemac.drv/cocoa_opengl.m b/dlls/winemac.drv/cocoa_opengl.m index e60b0b388b..80a766cbda 100644 --- a/dlls/winemac.drv/cocoa_opengl.m +++ b/dlls/winemac.drv/cocoa_opengl.m @@ -359,8 +359,9 @@ void macdrv_update_opengl_context(macdrv_opengl_context c) [context clearDrawableLeavingSurfaceOnScreen]; context.view = view; } - else + else OnMainThread(^{ [context update]; + }); [context resetSurfaceIfBackingSizeChanged]; } }
participants (1)
-
Alexandre Julliard