From 4bded02ad668e3efc193cd14904569cccae0aa84 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 10 Jul 2016 14:49:41 +0900 Subject: [PATCH] graphics: Add a comment --- internal/graphics/command.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/graphics/command.go b/internal/graphics/command.go index 06ba84d49..df932163f 100644 --- a/internal/graphics/command.go +++ b/internal/graphics/command.go @@ -159,6 +159,7 @@ func (c *replacePixelsCommand) Exec(context *opengl.Context) error { } // This is necessary on Android. We can't call glClear just before glTexSubImage2D without // glFlush. glTexSubImage2D didn't work without this hack at least on Nexus 5x (#211). + // This also happens when a fillCommand precedes a replacePixelsCommand. // TODO: Can we have a better way like optimizing commands? context.Flush() context.BindTexture(c.dst.texture.native)