mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
uidriver/glfw: Bug fix: errors are ignored at (*UserInterface).run
Updates #978
This commit is contained in:
parent
d43e203ccf
commit
572780ed6d
@ -586,7 +586,7 @@ func (u *UserInterface) RunWithoutMainLoop(width, height int, scale float64, tit
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (u *UserInterface) run(width, height int, scale float64, title string, context driver.UIContext) error {
|
func (u *UserInterface) run(width, height int, scale float64, title string, context driver.UIContext) error {
|
||||||
_ = u.t.Call(func() error {
|
if err := u.t.Call(func() error {
|
||||||
if u.graphics.IsGL() {
|
if u.graphics.IsGL() {
|
||||||
glfw.WindowHint(glfw.ContextVersionMajor, 2)
|
glfw.WindowHint(glfw.ContextVersionMajor, 2)
|
||||||
glfw.WindowHint(glfw.ContextVersionMinor, 1)
|
glfw.WindowHint(glfw.ContextVersionMinor, 1)
|
||||||
@ -682,7 +682,9 @@ func (u *UserInterface) run(width, height int, scale float64, title string, cont
|
|||||||
u.reqHeight = h
|
u.reqHeight = h
|
||||||
})
|
})
|
||||||
return nil
|
return nil
|
||||||
})
|
}); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
var w uintptr
|
var w uintptr
|
||||||
_ = u.t.Call(func() error {
|
_ = u.t.Call(func() error {
|
||||||
|
Loading…
Reference in New Issue
Block a user