diff --git a/graphicscontext.go b/graphicscontext.go index 4d3d65145..5032522c5 100644 --- a/graphicscontext.go +++ b/graphicscontext.go @@ -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 } diff --git a/internal/graphics/command.go b/internal/graphics/command.go index be49a524b..499d48aa5 100644 --- a/internal/graphics/command.go +++ b/internal/graphics/command.go @@ -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 }