mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +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