mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2026-04-22 15:57:15 +08:00
ebiten: bug fix: resolveSetVerticesCacheIfNeeded must be called after Draw
Closes #2542
This commit is contained in:
@@ -63,4 +63,5 @@ 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.offscreen.resolveSetVerticesCacheIfNeeded()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user