From 8c4b29ed1f493e9c5c9ba714b7d89686d6a16002 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 15 Jan 2023 02:05:33 +0900 Subject: [PATCH] ebiten: bug fix: resolveSetVerticesCacheIfNeeded must be called after Draw Closes #2542 --- gameforui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gameforui.go b/gameforui.go index 7394bc7d2..a7781c128 100644 --- a/gameforui.go +++ b/gameforui.go @@ -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() }