mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +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
|
||||
}
|
||||
|
||||
u.m.Lock()
|
||||
u.frame++
|
||||
u.m.Lock()
|
||||
vsync := u.vsync
|
||||
u.m.Unlock()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user