mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +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