mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
ui/app: (macOS) don't release opengl context
I haven't found a reliable way to re-create the context and redraw after deminiaturization or app unhide. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -143,11 +143,6 @@ CFTypeRef gio_contextForView(CFTypeRef viewRef) {
|
||||
return (__bridge CFTypeRef)view.openGLContext;
|
||||
}
|
||||
|
||||
void gio_clearGLContext(CFTypeRef viewRef) {
|
||||
NSOpenGLView *view = (__bridge NSOpenGLView *)viewRef;
|
||||
[view clearGLContext];
|
||||
}
|
||||
|
||||
void gio_clearCurrentContext(void) {
|
||||
[NSOpenGLContext clearCurrentContext];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user