mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ebiten: bug fix: resolveSetVerticesCacheIfNeeded was not called for the offscreen
Closes #2362
This commit is contained in:
parent
b4306e0e56
commit
659e048de9
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user