diff --git a/internal/graphicscommand/shader.go b/internal/graphicscommand/shader.go index c91b8905b..193f94d2b 100644 --- a/internal/graphicscommand/shader.go +++ b/internal/graphicscommand/shader.go @@ -211,7 +211,7 @@ func (s *Shader) convertUniforms(uniforms map[string]interface{}) [][]float32 { case []float32: us[idx.resultIndex] = v default: - panic(fmt.Sprintf("ebiten: unexpected uniform value type: %s, %T", name, v)) + panic(fmt.Sprintf("graphicscommand: unexpected uniform value type: %s, %T", name, v)) } continue } diff --git a/internal/mipmap/mipmap.go b/internal/mipmap/mipmap.go index ebd04f7a4..de7ce7c3f 100644 --- a/internal/mipmap/mipmap.go +++ b/internal/mipmap/mipmap.go @@ -155,11 +155,11 @@ func (m *Mipmap) setImg(level int, img *buffered.Image) { func (m *Mipmap) level(level int) *buffered.Image { if level == 0 { - panic("ebiten: level must be non-zero at level") + panic("mipmap: level must be non-zero at level") } if m.volatile { - panic("ebiten: mipmap images for a volatile image is not implemented yet") + panic("mipmap: mipmap images for a volatile image is not implemented yet") } if img, ok := m.imgs[level]; ok { @@ -185,7 +185,7 @@ func (m *Mipmap) level(level int) *buffered.Image { vs = graphics.QuadVertices(0, 0, float32(w), float32(h), 0.5, 0, 0, 0.5, 0, 0, 1, 1, 1, 1) filter = graphicsdriver.FilterLinear default: - panic(fmt.Sprintf("ebiten: invalid level: %d", level)) + panic(fmt.Sprintf("mipmap: invalid level: %d", level)) } is := graphics.QuadIndices() diff --git a/internal/ui/context.go b/internal/ui/context.go index 3e1647651..956656ebe 100644 --- a/internal/ui/context.go +++ b/internal/ui/context.go @@ -222,7 +222,7 @@ func (g *globalState) maxTPS() int { func (g *globalState) setMaxTPS(tps int) { if tps < 0 && tps != clock.SyncWithFPS { - panic("ebiten: tps must be >= 0 or SyncWithFPS") + panic("ui: tps must be >= 0 or SyncWithFPS") } atomic.StoreInt32(&g.maxTPS_, int32(tps)) }