diff options
Diffstat (limited to 'glfw.go')
-rw-r--r-- | glfw.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -30,7 +30,7 @@ const ( // This function may only be called from the main thread. func Init() error { C.glfwInit() - return fetchError() + return acceptError(APIUnavailable) } // Terminate destroys all remaining windows, frees any allocated resources and @@ -43,11 +43,10 @@ func Init() error { // this function, as it is called by Init before it returns failure. // // This function may only be called from the main thread. -func Terminate() error { - err := fetchError() +func Terminate() { flushErrors() C.glfwTerminate() - return err + return } // GetVersion retrieves the major, minor and revision numbers of the GLFW |