Skip to content

Commit ef648d7

Browse files
authored
Allow GLFW_INVLAID_VALUE at Init (#325)
Closes #324 Updates #292
1 parent ea3d685 commit ef648d7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

v3.3/glfw/glfw.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ const (
3434
// This function may only be called from the main thread.
3535
func Init() error {
3636
C.glfwInit()
37-
return acceptError(APIUnavailable)
37+
// invalidValue can happen when specific joysticks are used. This issue
38+
// will be fixed in GLFW 3.3.5. As a temporary fix, accept this error.
39+
// See go-gl/glfw#292, go-gl/glfw#324, and glfw/glfw#1763.
40+
return acceptError(APIUnavailable, invalidValue)
3841
}
3942

4043
// Terminate destroys all remaining windows, frees any allocated resources and

0 commit comments

Comments
 (0)