glfw: Skip error check at proc call

This commit is contained in:
Hajime Hoshi 2018-12-30 23:06:06 +09:00
parent a21a4c75b0
commit efc7225ee1

View File

@ -41,7 +41,8 @@ func (d *dll) call(name string, args ...uintptr) uintptr {
} }
r, _, err := d.procs[name].Call(args...) r, _, err := d.procs[name].Call(args...)
if err != nil && err.(windows.Errno) != 0 { if err != nil && err.(windows.Errno) != 0 {
panic(err) // 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
} }