mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +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)
|
atomic.StoreUint32(&d.running, 1)
|
||||||
if !started {
|
if !started {
|
||||||
started = true
|
started = true
|
||||||
if res := C.gio_startDisplayLink(dl); res != 0 {
|
C.gio_startDisplayLink(dl)
|
||||||
panic("failed to start display link")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case did := <-d.dids:
|
case did := <-d.dids:
|
||||||
|
|||||||
Reference in New Issue
Block a user