ui: Fix comment

This commit is contained in:
Hajime Hoshi 2018-01-06 23:53:35 +09:00
parent 61646e5d03
commit 0469ef386b

View File

@ -487,7 +487,8 @@ func (u *userInterface) loop(g GraphicsContext) error {
if err := u.update(g); err != nil { if err := u.update(g); err != nil {
return err return err
} }
// The bound framebuffer must be the default one (0) before swapping buffers. // The bound framebuffer must be the original screen framebuffer
// before swapping buffers.
opengl.GetContext().BindScreenFramebuffer() opengl.GetContext().BindScreenFramebuffer()
_ = u.runOnMainThread(func() error { _ = u.runOnMainThread(func() error {
u.swapBuffers() u.swapBuffers()