Issue #1905 - Part 2c - Fix OpenGL crash caused by calling [NSOpenGLContext setView:] on the Compositor thread. Starting with SDK 10.14 I believe, many functions have main thread checks, including setView: and update. So we now move the code in the updateGLContext method into doDrawRect which runs on the main thread.

This commit is contained in:
Brian Smith 2022-06-04 17:13:45 -05:00 committed by roytam1
commit 7224a17903
2 changed files with 8 additions and 13 deletions

View file

@ -224,7 +224,6 @@ class WidgetRenderingContext;
enter:(BOOL)aEnter
exitFrom:(mozilla::WidgetMouseEvent::ExitFrom)aExitFrom;
- (void)updateGLContext;
- (void)_surfaceNeedsUpdate:(NSNotification*)notification;
- (bool)preRender:(NSOpenGLContext *)aGLContext;