examples/contextlost: Bug fix: Compile error

This commit is contained in:
Hajime Hoshi 2020-10-06 01:34:07 +09:00
parent 1c13e73b06
commit c777dc6938

View File

@ -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)
}