mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
graphics: Add a comment
This commit is contained in:
parent
0c611d875b
commit
4bded02ad6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user