mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 02:42:02 +01:00
parent
b1d7a5f595
commit
b72848dc97
@ -152,7 +152,7 @@ func fieldSelectorExpr(a, b Expr) Expr {
|
||||
}
|
||||
|
||||
func TestOutput(t *testing.T) {
|
||||
glslPrelude := glsl.FragmentPrelude + "\n"
|
||||
glslPrelude := glsl.FragmentPrelude(glsl.GLSLVersionDefault) + "\n"
|
||||
|
||||
tests := []struct {
|
||||
Name string
|
||||
@ -165,7 +165,7 @@ func TestOutput(t *testing.T) {
|
||||
Name: "Empty",
|
||||
Program: Program{},
|
||||
GlslVS: ``,
|
||||
GlslFS: glsl.FragmentPrelude,
|
||||
GlslFS: glsl.FragmentPrelude(glsl.GLSLVersionDefault),
|
||||
},
|
||||
{
|
||||
Name: "Uniform",
|
||||
@ -1019,7 +1019,7 @@ void main(void) {
|
||||
for _, tc := range tests {
|
||||
tc := tc
|
||||
t.Run(tc.Name, func(t *testing.T) {
|
||||
vs, fs := glsl.Compile(&tc.Program)
|
||||
vs, fs := glsl.Compile(&tc.Program, glsl.GLSLVersionDefault)
|
||||
{
|
||||
got := vs
|
||||
want := tc.GlslVS + "\n"
|
||||
|
Loading…
Reference in New Issue
Block a user