mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +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 (
|
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?")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user