mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +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
|
// 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).
|
// 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?
|
// TODO: Can we have a better way like optimizing commands?
|
||||||
context.Flush()
|
context.Flush()
|
||||||
context.BindTexture(c.dst.texture.native)
|
context.BindTexture(c.dst.texture.native)
|
||||||
|
Loading…
Reference in New Issue
Block a user