Skip to content

Commit

Permalink
Allow GLFW_INVLAID_VALUE at Init (#325)
Browse files Browse the repository at this point in the history
Closes #324
Updates #292
  • Loading branch information
hajimehoshi authored Jul 14, 2021
1 parent ea3d685 commit ef648d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion v3.3/glfw/glfw.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ const (
// This function may only be called from the main thread.
func Init() error {
C.glfwInit()
return acceptError(APIUnavailable)
// invalidValue can happen when specific joysticks are used. This issue
// will be fixed in GLFW 3.3.5. As a temporary fix, accept this error.
// See go-gl/glfw#292, go-gl/glfw#324, and glfw/glfw#1763.
return acceptError(APIUnavailable, invalidValue)
}

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

0 comments on commit ef648d7

Please sign in to comment.