summaryrefslogtreecommitdiff
path: root/glfw.go
diff options
context:
space:
mode:
Diffstat (limited to 'glfw.go')
-rw-r--r--glfw.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/glfw.go b/glfw.go
index 62d1012..1675341 100644
--- a/glfw.go
+++ b/glfw.go
@@ -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