From 885a3fa7ccd2341905377722aa0d86141034a782 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 20 Oct 2022 14:13:06 +0900 Subject: [PATCH] examples/vector: bug fix: wrong offscreen resetting --- examples/vector/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vector/main.go b/examples/vector/main.go index 4fa808855..bdf857de1 100644 --- a/examples/vector/main.go +++ b/examples/vector/main.go @@ -320,7 +320,7 @@ func (g *Game) Update() error { func (g *Game) Draw(screen *ebiten.Image) { if g.offscreen != nil { w, h := screen.Size() - if ow, oh := g.offscreen.Size(); ow != w || oh != h { + if ow, oh := g.offscreen.Size(); ow != w*2 || oh != h*2 { g.offscreen.Dispose() g.offscreen = nil }