mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
app/internal/window: [macOS] always draw synchronously
Asynchronous draws introduces flickering on resizes. Fixes #123 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -114,6 +114,11 @@ CFTypeRef gio_createGLView(void) {
|
||||
}
|
||||
}
|
||||
|
||||
void gio_setNeedsDisplay(CFTypeRef viewRef) {
|
||||
NSOpenGLView *view = (__bridge NSOpenGLView *)viewRef;
|
||||
[view setNeedsDisplay:YES];
|
||||
}
|
||||
|
||||
CFTypeRef gio_contextForView(CFTypeRef viewRef) {
|
||||
NSOpenGLView *view = (__bridge NSOpenGLView *)viewRef;
|
||||
return (__bridge CFTypeRef)view.openGLContext;
|
||||
|
||||
Reference in New Issue
Block a user