Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
app/headless: don't release context while it's current
Browse files Browse the repository at this point in the history
Updates gio#144

Signed-off-by: Elias Naur <mail@eliasnaur.com>
  • Loading branch information
eliasnaur committed Jul 4, 2020
1 parent 1513348 commit d53c927
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/headless/headless.go
Expand Up @@ -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
Expand Down

0 comments on commit d53c927

Please sign in to comment.