From 15d2e6b82b9016f67c7d379500200a378fa90c10 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 28 Feb 2018 23:40:43 +0900 Subject: [PATCH] graphics: Fix comments --- internal/graphics/command.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/internal/graphics/command.go b/internal/graphics/command.go index 7eb03090d..6f4fbb3c2 100644 --- a/internal/graphics/command.go +++ b/internal/graphics/command.go @@ -279,11 +279,8 @@ func (c *replacePixelsCommand) Exec(indexOffsetInBytes int) error { } f.setAsViewport() - // This is necessary on Android. - // - // 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? + // glFlush is necessary on Android. + // glTexSubImage2D didn't work without this hack at least on Nexus 5x and NuAns NEO [Reloaded] (#211). opengl.GetContext().Flush() opengl.GetContext().BindTexture(c.dst.texture.native) opengl.GetContext().TexSubImage2D(c.pixels, emath.NextPowerOf2Int(c.dst.width), emath.NextPowerOf2Int(c.dst.height))