diff --git a/internal/graphics/shader.go b/internal/graphics/shader.go index eb6fa77ad..b3f332d9c 100644 --- a/internal/graphics/shader.go +++ b/internal/graphics/shader.go @@ -36,6 +36,8 @@ func shader(id shaderID) string { defs = append(defs, "#define FILTER_NEAREST") case shaderFragmentLinear: defs = append(defs, "#define FILTER_LINEAR") + default: + panic("not reached") } return strings.Replace(shaderStrFragment, "{{Definitions}}", strings.Join(defs, "\n"), -1) }