mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
uidriver/glfw: Remove a redundant 'if' branch
This commit is contained in:
parent
63f73ddd75
commit
d43e203ccf
@ -822,15 +822,7 @@ func (u *UserInterface) loop(context driver.UIContext) error {
|
||||
return err
|
||||
}
|
||||
|
||||
u.m.RLock()
|
||||
vsync := u.vsync
|
||||
u.m.RUnlock()
|
||||
|
||||
_ = u.t.Call(func() error {
|
||||
if !vsync {
|
||||
u.swapBuffers()
|
||||
return nil
|
||||
}
|
||||
u.swapBuffers()
|
||||
return nil
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user