From 6b23a94ae2b2cb03e7ca076401397f7b2ca95474 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 28 Sep 2022 23:08:41 +0900 Subject: [PATCH] ebiten: bug fix: resolveSetVerticesCacheIfNeeded was not called for the offscreen Closes #2362 --- gameforui.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gameforui.go b/gameforui.go index f0867262b..7394bc7d2 100644 --- a/gameforui.go +++ b/gameforui.go @@ -60,5 +60,7 @@ func (c *gameForUI) Update() error { } 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) }