mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
app/headless: don't release context while it's current
Updates gio#144 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -96,12 +96,12 @@ func (w *Window) Release() {
|
|||||||
w.gpu.Release()
|
w.gpu.Release()
|
||||||
w.gpu = nil
|
w.gpu = nil
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
|
})
|
||||||
if w.ctx != nil {
|
if w.ctx != nil {
|
||||||
w.ctx.Release()
|
w.ctx.Release()
|
||||||
w.ctx = nil
|
w.ctx = nil
|
||||||
}
|
}
|
||||||
return nil
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Frame replace the window content and state with the
|
// Frame replace the window content and state with the
|
||||||
|
|||||||
Reference in New Issue
Block a user