mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-24 18:02:02 +01:00
graphics: Add 'not-reached' clause
This commit is contained in:
parent
0a99103bc1
commit
e13bb0769b
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user