gpu/headless: return error if NewTexture fails

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-04-13 12:58:33 +02:00
parent 38ff78df5d
commit 6e66203881
+1 -1
View File
@@ -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)