mobile: Remove locking OS thread in some functions

This commit is contained in:
Hajime Hoshi 2016-06-10 00:57:07 +09:00
parent 66e78922f8
commit a96a00b545

View File

@ -18,7 +18,6 @@ package mobile
import ( import (
"errors" "errors"
"runtime"
"github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten"
"github.com/hajimehoshi/ebiten/internal/ui" "github.com/hajimehoshi/ebiten/internal/ui"
@ -65,9 +64,6 @@ func (e *eventDispatcher) SetScreenScale(scale int) {
} }
func (e *eventDispatcher) Render() error { func (e *eventDispatcher) Render() error {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
if chError == nil { if chError == nil {
return errors.New("mobile: chError must not be nil: Start is not called yet?") return errors.New("mobile: chError must not be nil: Start is not called yet?")
} }