mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
mobile: Remove locking OS thread in some functions
This commit is contained in:
parent
66e78922f8
commit
a96a00b545
@ -18,7 +18,6 @@ package mobile
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"runtime"
|
||||
|
||||
"github.com/hajimehoshi/ebiten"
|
||||
"github.com/hajimehoshi/ebiten/internal/ui"
|
||||
@ -65,9 +64,6 @@ func (e *eventDispatcher) SetScreenScale(scale int) {
|
||||
}
|
||||
|
||||
func (e *eventDispatcher) Render() error {
|
||||
runtime.LockOSThread()
|
||||
defer runtime.UnlockOSThread()
|
||||
|
||||
if chError == nil {
|
||||
return errors.New("mobile: chError must not be nil: Start is not called yet?")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user