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:
parent
da1e666f57
commit
3deae92a6f
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue