mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +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 {
|
||||
d.procs[name] = d.d.NewProc(name)
|
||||
}
|
||||
r, _, err := d.procs[name].Call(args...)
|
||||
if err != nil && err.(windows.Errno) != 0 {
|
||||
// It looks like there is no way to handle these errors?
|
||||
// panic(fmt.Sprintf("glfw: calling proc error: errno: %d (%s)", err, err.Error()))
|
||||
}
|
||||
// It looks like there is no way to handle Windows errors correctly.
|
||||
r, _, _ := d.procs[name].Call(args...)
|
||||
return r
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user