mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Bug fix: call runtime.LockOSThread
This commit is contained in:
parent
b443cb7ebe
commit
38d343f3e7
@ -28,6 +28,7 @@ import "C"
|
||||
import (
|
||||
"github.com/hajimehoshi/go.ebiten/graphics"
|
||||
"github.com/hajimehoshi/go.ebiten/graphics/matrix"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
type Device struct {
|
||||
@ -96,3 +97,7 @@ func (device *Device) Update() {
|
||||
func (device *Device) TextureFactory() graphics.TextureFactory {
|
||||
return device.context
|
||||
}
|
||||
|
||||
func init() {
|
||||
runtime.LockOSThread()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user