mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +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 {
|
if err != nil {
|
||||||
dev.Release()
|
dev.Release()
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
// Note that the gpu takes ownership of dev.
|
// Note that the gpu takes ownership of dev.
|
||||||
gp, err := gpu.NewWithDevice(dev)
|
gp, err := gpu.NewWithDevice(dev)
|
||||||
|
|||||||
Reference in New Issue
Block a user