Revert an unreasonable change at 633ee409

This commit is contained in:
Hajime Hoshi 2016-02-06 15:54:29 +09:00
parent 9178b488a1
commit ccf7b0c159

View File

@ -64,16 +64,10 @@ func Init() {
func ExecOnUIThread(f func()) {
ch := make(chan struct{})
/*currentUI.funcs <- func() {
currentUI.funcs <- func() {
defer close(ch)
f()
}*/
go func() {
defer close(ch)
runtime.LockOSThread()
currentUI.window.MakeContextCurrent()
f()
}()
}
<-ch
}