ui/app: (macOS) avoid double-drawing in NSOpenGLView update

Instead of drwaing twice when updated, schedule a redraw.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-21 19:19:34 +02:00
parent 2cb3832c16
commit 2f9e29d878
+1 -1
View File
@@ -68,7 +68,7 @@ CVDisplayLinkRef displayLink;
}
- (void)update {
[super update];
gio_onDraw((__bridge CFTypeRef)self);
[self setNeedsDisplay:YES];
}
- (void)drawRect:(NSRect)r {
gio_onDraw((__bridge CFTypeRef)self);