mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
graphics: Move glFlush to a more appropriate place
This commit is contained in:
parent
83a96dc532
commit
cabea24815
@ -84,6 +84,8 @@ func (c *graphicsContext) Update() error {
|
|||||||
if err := c.defaultRenderTarget.DrawImage(c.screen, options); err != nil {
|
if err := c.defaultRenderTarget.DrawImage(c.screen, options); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
// Call glFlush to prevent black flicking (especially on Android (#226)).
|
||||||
|
ui.GLContext().Flush()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,8 +62,6 @@ func (q *commandQueue) Flush(context *opengl.Context) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Call glFlush to prevent black flicking (especially on Android (#226)).
|
|
||||||
context.Flush()
|
|
||||||
q.commands = []command{}
|
q.commands = []command{}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user