From 4b944d5ae8cd0040ee43fcdefa92bfe06c56518b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 14 Jan 2023 20:23:46 +0100 Subject: MacOS: MacOSXCGLContext.drawableUpdatedNotify(): Issue updateContext() on main thread, deferred w/o wait (MacOS >= 13) updateContextRegister() stays in current thread. --- make/stub_includes/opengl/macosx-window-system.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'make/stub_includes/opengl/macosx-window-system.h') diff --git a/make/stub_includes/opengl/macosx-window-system.h b/make/stub_includes/opengl/macosx-window-system.h index d8147a000..b48add0a6 100644 --- a/make/stub_includes/opengl/macosx-window-system.h +++ b/make/stub_includes/opengl/macosx-window-system.h @@ -40,10 +40,10 @@ Bool clearCurrentContext(NSOpenGLContext *ctx); Bool deleteContext(NSOpenGLContext* ctx, Bool releaseOnMainThread); Bool flushBuffer(NSOpenGLContext* ctx); void setContextOpacity(NSOpenGLContext* ctx, int opacity); -void updateContext(NSOpenGLContext* ctx); +void updateContext(NSOpenGLContext* ctx, Bool onMainThread); void copyContext(NSOpenGLContext* dest, NSOpenGLContext* src, int mask); -void* updateContextRegister(NSOpenGLContext* ctx, NSView* view); +void* updateContextRegister(NSOpenGLContext* ctx, NSView* view, Bool onMainThread); Bool updateContextNeedsUpdate(void* updater); void updateContextUnregister(void* updater); -- cgit v1.2.3