mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
app/internal/gpu: don't release the context when New fails
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -290,6 +290,9 @@ func (w *Window) run(opts *window.Options) {
|
||||
ctx, err = w.driver.NewContext()
|
||||
if err == nil {
|
||||
w.gpu, err = gpu.New(ctx)
|
||||
if err != nil {
|
||||
ctx.Release()
|
||||
}
|
||||
}
|
||||
}
|
||||
var frame *op.Ops
|
||||
|
||||
Reference in New Issue
Block a user