winemac: Only call -[NSOpenGLContext update] from the main thread.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Ken Thomases 2020-03-11 14:55:53 -05:00 committed by Alexandre Julliard
parent da1e666f57
commit 3deae92a6f

View file

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