ebiten: bug fix: resolveSetVerticesCacheIfNeeded must be called after Draw

Closes #2542
This commit is contained in:
Hajime Hoshi 2023-01-15 02:05:33 +09:00
parent edc3c829fb
commit 8c4b29ed1f

View File

@ -63,4 +63,5 @@ func (c *gameForUI) Draw() {
// TODO: This is a dirty hack to fix #2362. Move setVerticesCache to ui.Image if possible. // TODO: This is a dirty hack to fix #2362. Move setVerticesCache to ui.Image if possible.
c.offscreen.resolveSetVerticesCacheIfNeeded() c.offscreen.resolveSetVerticesCacheIfNeeded()
c.game.Draw(c.offscreen) c.game.Draw(c.offscreen)
c.offscreen.resolveSetVerticesCacheIfNeeded()
} }