Bug fix: call runtime.LockOSThread

This commit is contained in:
Hajime Hoshi 2013-07-09 00:49:21 +09:00
parent b443cb7ebe
commit 38d343f3e7

View File

@ -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()
}