diff --git a/allegro5/system.go b/allegro5/system.go index 653c8e1..6fd40fe 100644 --- a/allegro5/system.go +++ b/allegro5/system.go @@ -12,8 +12,13 @@ import "C" import ( "errors" + "runtime" ) +func init() { + runtime.LockOSThread() +} + type InitConfig struct { Font bool Image bool