app/internal/window: [macOS] ignore result from CVDisplayLinkStart

Larry Clapp reported a panic from failing to start the display link.
Ignore the error and hope the error is transient.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-06-30 11:36:26 +02:00
parent 851255f7a6
commit 958b19ae22
+1 -3
View File
@@ -133,9 +133,7 @@ func (d *displayLink) run(dl C.CFTypeRef) {
atomic.StoreUint32(&d.running, 1)
if !started {
started = true
if res := C.gio_startDisplayLink(dl); res != 0 {
panic("failed to start display link")
}
C.gio_startDisplayLink(dl)
}
}
case did := <-d.dids: