From c777dc69388d78b660a76ca532d3665ecffc40ba Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 6 Oct 2020 01:34:07 +0900 Subject: [PATCH] examples/contextlost: Bug fix: Compile error --- examples/contextlost/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/contextlost/main.go b/examples/contextlost/main.go index 15934fb40..cd37ac942 100644 --- a/examples/contextlost/main.go +++ b/examples/contextlost/main.go @@ -144,11 +144,11 @@ func main() { if err != nil { log.Fatal(err) } - gophersImage, _ = ebiten.NewImageFromImage(img) + gophersImage = ebiten.NewImageFromImage(img) // Extend the shared backend GL texture on purpose. for i := 0; i < 20; i++ { - eimg, _ := ebiten.NewImageFromImage(img) + eimg := ebiten.NewImageFromImage(img) extraImages = append(extraImages, eimg) }