diff options
-rw-r--r-- | main.go | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -8,12 +8,6 @@ import ( "flag" ) -func init() { - // lock this program to one OS thread (details: https://golang.org/pkg/runtime/#LockOSThread) - log.Println("Locking OS thread") - runtime.LockOSThread() -} - func main() { // read command line arguments @@ -27,6 +21,10 @@ func main() { } vertices = stl.toVertices() + // lock this program to one OS thread (details: https://golang.org/pkg/runtime/#LockOSThread) + log.Println("Locking OS thread") + runtime.LockOSThread() + // initialize application (includes GLFW/window) var app App = newApp(&stl) defer app.terminate() // GLFW needs to be terminated! |