diff --git a/internal/shaderir/ir_test.go b/internal/shaderir/ir_test.go index 2063755da..d14dc7a98 100644 --- a/internal/shaderir/ir_test.go +++ b/internal/shaderir/ir_test.go @@ -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"