From ee911fd8922656098566b5730b9526f369aee78a Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 20 Feb 2022 22:01:36 +0900 Subject: [PATCH] internal/graphicsdriver/metal: fix an error message --- internal/graphicsdriver/metal/graphics_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/graphicsdriver/metal/graphics_darwin.go b/internal/graphicsdriver/metal/graphics_darwin.go index e3009f13e..f6fd8d4c6 100644 --- a/internal/graphicsdriver/metal/graphics_darwin.go +++ b/internal/graphicsdriver/metal/graphics_darwin.go @@ -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 }