uidriver/glfw: Remove a redundant 'if' branch

This commit is contained in:
Hajime Hoshi 2019-11-10 17:34:14 +09:00
parent 63f73ddd75
commit d43e203ccf

View File

@ -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
})