mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
internal/graphicsdriver/metal: fix an error message
This commit is contained in:
parent
3564cc795f
commit
ee911fd892
@ -557,7 +557,7 @@ func (g *Graphics) addImage(img *Image) {
|
||||
g.images = map[graphicsdriver.ImageID]*Image{}
|
||||
}
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user