mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
ui: Fix comment
This commit is contained in:
parent
61646e5d03
commit
0469ef386b
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user