internal/graphicsdriver/metal: fix an error message

This commit is contained in:
Hajime Hoshi 2022-02-20 22:01:36 +09:00
parent 3564cc795f
commit ee911fd892

View File

@ -557,7 +557,7 @@ func (g *Graphics) addImage(img *Image) {
g.images = map[graphicsdriver.ImageID]*Image{} g.images = map[graphicsdriver.ImageID]*Image{}
} }
if _, ok := g.images[img.id]; ok { if _, ok := g.images[img.id]; ok {
panic(fmt.Sprintf("opengl: image ID %d was already registered", img.id)) panic(fmt.Sprintf("metal: image ID %d was already registered", img.id))
} }
g.images[img.id] = img g.images[img.id] = img
} }