mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 03:58:55 +01:00
ui: Remove unnecessary lock protection
This commit is contained in:
parent
fce82e1502
commit
9906c935f6
@ -639,8 +639,8 @@ func (u *userInterface) loop(g GraphicsContext) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
u.m.Lock()
|
|
||||||
u.frame++
|
u.frame++
|
||||||
|
u.m.Lock()
|
||||||
vsync := u.vsync
|
vsync := u.vsync
|
||||||
u.m.Unlock()
|
u.m.Unlock()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user