graphics: Move glFlush to a more appropriate place

This commit is contained in:
Hajime Hoshi 2016-06-07 03:02:15 +09:00
parent 83a96dc532
commit cabea24815
2 changed files with 2 additions and 2 deletions

View File

@ -84,6 +84,8 @@ func (c *graphicsContext) Update() error {
if err := c.defaultRenderTarget.DrawImage(c.screen, options); err != nil {
return err
}
// Call glFlush to prevent black flicking (especially on Android (#226)).
ui.GLContext().Flush()
return nil
}

View File

@ -62,8 +62,6 @@ func (q *commandQueue) Flush(context *opengl.Context) error {
return err
}
}
// Call glFlush to prevent black flicking (especially on Android (#226)).
context.Flush()
q.commands = []command{}
return nil
}