mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user