Skip to content

Commit d84a85c

Browse files
committed
Move runtime.LockOSThread into init.
1 parent 9f5aab3 commit d84a85c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

desktop.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ import (
1111
"golang.org/x/tools/godoc/vfs"
1212
)
1313

14-
func Init() error {
14+
func init() {
1515
runtime.LockOSThread()
16+
}
1617

18+
func Init() error {
1719
return glfw.Init()
1820
}
1921

0 commit comments

Comments
 (0)