mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ebiten: bug fix: resolveSetVerticesCacheIfNeeded must be called after Draw
Closes #2542
This commit is contained in:
parent
edc3c829fb
commit
8c4b29ed1f
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user