]> git.tdb.fi Git - libs/gl.git/commitdiff
Adjust function names in the GLSL compiler test runner
authorMikko Rasa <tdb@tdb.fi>
Sat, 16 Oct 2021 13:55:38 +0000 (16:55 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 16 Oct 2021 16:03:01 +0000 (19:03 +0300)
Make them match the changes in d1e4737.

tests/glsl/glslcompiler.cpp

index e4b36a398e6b88ca965098b3d3a8a3ed37902e64..3debd721fb8a769f3dd6837a1d65bc995b65bcc9 100644 (file)
@@ -251,7 +251,7 @@ GlslCompilerTest::GlslCompilerTest()
 
 void GlslCompilerTest::run_test_case(const TestCase *test_case)
 {
-       GL::SL::Compiler compiler(GL::SL::Features::latest());
+       GL::SL::Compiler compiler(GL::SL::Features::opengl_latest());
        try
        {
                compiler.set_source(test_case->source, "<test>");
@@ -308,13 +308,13 @@ GlslCompilerIdempotence::GlslCompilerIdempotence()
 
 void GlslCompilerIdempotence::run_test_case(const TestCase *test_case)
 {
-       GL::SL::Compiler compiler(GL::SL::Features::latest());
+       GL::SL::Compiler compiler(GL::SL::Features::opengl_latest());
        compiler.set_source(test_case->source, "<test>");
        if(test_case->compile_mode==GL::SL::Compiler::PROGRAM)
                compiler.specialize(test_case->spec_values);
        compiler.compile(test_case->compile_mode);
 
-       GL::SL::Compiler compiler2(GL::SL::Features::latest());
+       GL::SL::Compiler compiler2(GL::SL::Features::opengl_latest());
        compiler2.set_source(compiler.get_combined_glsl(), "<loopback>");
        compiler2.compile(test_case->compile_mode);
 
@@ -351,7 +351,7 @@ GlslCompilerSpirV::GlslCompilerSpirV():
 
 void GlslCompilerSpirV::run_test_case(const TestCase *test_case)
 {
-       GL::SL::Compiler compiler(GL::SL::Features::latest());
+       GL::SL::Compiler compiler(GL::SL::Features::opengl_latest());
        compiler.set_source(test_case->source, "<test>");
        compiler.compile(GL::SL::Compiler::SPIRV);