graphics: Add 'not-reached' clause

This commit is contained in:
Hajime Hoshi 2017-12-21 00:57:36 +09:00
parent 0a99103bc1
commit e13bb0769b

View File

@ -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)
}