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
0d2c8b59fc
commit
6b23a94ae2
@ -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