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:
Elias Naur
2020-07-04 16:34:32 +02:00
parent 1513348bf6
commit d53c92791f
+4 -4
View File
@@ -96,12 +96,12 @@ func (w *Window) Release() {
w.gpu.Release()
w.gpu = nil
}
if w.ctx != nil {
w.ctx.Release()
w.ctx = nil
}
return nil
})
if w.ctx != nil {
w.ctx.Release()
w.ctx = nil
}
}
// Frame replace the window content and state with the