mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
gpu/headless: return error if NewTexture fails
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -80,7 +80,7 @@ func NewWindow(width, height int) (*Window, error) {
|
||||
)
|
||||
if err != nil {
|
||||
dev.Release()
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
// Note that the gpu takes ownership of dev.
|
||||
gp, err := gpu.NewWithDevice(dev)
|
||||
|
||||
Reference in New Issue
Block a user