]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/glslcompiler.cpp
Fix a compile error in the GLSL compiler test runner
[libs/gl.git] / tests / glsl / glslcompiler.cpp
index 35bbc8bcfb82449e1261d8d1ce542df069b86833..e4b36a398e6b88ca965098b3d3a8a3ed37902e64 100644 (file)
@@ -80,8 +80,8 @@ using namespace Msp;
 
 void GlslCompilerHelper::load_all_test_cases(const FS::Path &tests_dir)
 {
-       list<string> test_files = FS::list_filtered(tests_dir, "\\.glsl$");
-       test_files.sort();
+       vector<string> test_files = FS::list_filtered(tests_dir, "\\.glsl$");
+       sort(test_files);
        for(const auto &fn: test_files)
                load_test_case((tests_dir/fn).str());
 }
@@ -355,7 +355,7 @@ void GlslCompilerSpirV::run_test_case(const TestCase *test_case)
        compiler.set_source(test_case->source, "<test>");
        compiler.compile(GL::SL::Compiler::SPIRV);
 
-       vector<UInt32> code = compiler.get_combined_spirv();
+       vector<uint32_t> code = compiler.get_combined_spirv();
        if(!spirv_tools.Validate(code))
                fail("Invalid SPIR-V generated");
 }