ebiten: bug fix: resolveSetVerticesCacheIfNeeded was not called for the offscreen

Closes #2362
This commit is contained in:
Hajime Hoshi 2022-09-28 23:08:41 +09:00
parent b4306e0e56
commit 659e048de9

View File

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