mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 12:32:05 +01:00
internal/glfw: Refactoring
This commit is contained in:
parent
4482301882
commit
c6dd349338
@ -38,11 +38,8 @@ func (d *dll) call(name string, args ...uintptr) uintptr {
|
|||||||
if _, ok := d.procs[name]; !ok {
|
if _, ok := d.procs[name]; !ok {
|
||||||
d.procs[name] = d.d.NewProc(name)
|
d.procs[name] = d.d.NewProc(name)
|
||||||
}
|
}
|
||||||
r, _, err := d.procs[name].Call(args...)
|
// It looks like there is no way to handle Windows errors correctly.
|
||||||
if err != nil && err.(windows.Errno) != 0 {
|
r, _, _ := d.procs[name].Call(args...)
|
||||||
// It looks like there is no way to handle these errors?
|
|
||||||
// panic(fmt.Sprintf("glfw: calling proc error: errno: %d (%s)", err, err.Error()))
|
|
||||||
}
|
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user