dispose of temprary alpha image

This commit is contained in:
Liam Galvin 2021-07-31 17:29:44 +01:00
parent 60ae1452c4
commit 4bbcce5557
1 changed files with 1 additions and 0 deletions

View File

@ -318,4 +318,5 @@ func (g *GUI) Draw(screen *ebiten.Image) {
opt := &ebiten.DrawImageOptions{} opt := &ebiten.DrawImageOptions{}
opt.ColorM.Scale(1, 1, 1, g.opacity) opt.ColorM.Scale(1, 1, 1, g.opacity)
screen.DrawImage(tmp, opt) screen.DrawImage(tmp, opt)
tmp.Dispose()
} }