]> git.tdb.fi Git - libs/gl.git/blobdiff - tools/glslcompiler.cpp
Adjust GLSL features factory function names
[libs/gl.git] / tools / glslcompiler.cpp
index 4fe6bc8bd636d75e00cb3f76bd1ee0d6a9fc277e..5dfd520d903296a367aa45670cc6ecbef9a2ddf6 100644 (file)
@@ -28,7 +28,7 @@ using namespace std;
 using namespace Msp;
 
 GlslCompiler::GlslCompiler(int argc, char **argv):
-       features(GL::SL::Features::latest()),
+       features(GL::SL::Features::opengl_latest()),
        compile_mode(GL::SL::Compiler::PROGRAM),
        parse_only(false),
        combined(false),
@@ -54,7 +54,7 @@ GlslCompiler::GlslCompiler(int argc, char **argv):
        getopt(argc, argv);
 
        if(target_version)
-               features = GL::SL::Features::from_version(GL::Version(target_version/100, target_version%100));
+               features = GL::SL::Features::from_opengl_version(GL::Version(target_version/100, target_version%100));
 
        if(as_module)
        {
@@ -149,7 +149,7 @@ int GlslCompiler::main()
 
        if(compile_mode==GL::SL::Compiler::SPIRV)
        {
-               vector<UInt32> code = compiler.get_combined_spirv();
+               vector<uint32_t> code = compiler.get_combined_spirv();
                out->write(reinterpret_cast<char *>(&code.front()), code.size()*4);
        }
        else if(combined)