diff options
author | Sven Gothel <[email protected]> | 2023-01-14 20:23:46 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-01-14 20:23:46 +0100 |
commit | 4b944d5ae8cd0040ee43fcdefa92bfe06c56518b (patch) | |
tree | ec5e1ac5546bf615564568a1831641ae971c17f2 /make/stub_includes/opengl | |
parent | b367231929a8e4d8eac53933a59a297b75ef5e58 (diff) |
MacOS: MacOSXCGLContext.drawableUpdatedNotify(): Issue updateContext() on main thread, deferred w/o wait (MacOS >= 13)
updateContextRegister() stays in current thread.
Diffstat (limited to 'make/stub_includes/opengl')
-rw-r--r-- | make/stub_includes/opengl/macosx-window-system.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |