From 3deae92a6fe1c2634410fb34a552b7f39fd1adb9 Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Wed, 11 Mar 2020 14:55:53 -0500 Subject: [PATCH] winemac: Only call -[NSOpenGLContext update] from the main thread. Signed-off-by: Ken Thomases Signed-off-by: Alexandre Julliard --- 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 e60b0b388b8..80a766cbda5 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]; } }