]> git.tdb.fi Git - libs/gl.git/blobdiff - tools/glslcompiler.cpp
Make the SL::Features factory functions more flexible
[libs/gl.git] / tools / glslcompiler.cpp
index d11fd611f23efa3125e53345596a89b52a997c5e..bcc787ebbb252e029b83d1793e9d749a69b8b180 100644 (file)
@@ -44,7 +44,7 @@ using namespace std;
 using namespace Msp;
 
 GlslCompiler::GlslCompiler(int argc, char **argv):
-       features(GL::SL::Features::opengl_latest()),
+       features(GL::SL::Features::latest(GL::OPENGL)),
        compile_mode(GL::SL::Compiler::PROGRAM),
        parse_only(false),
        combined(false),
@@ -71,7 +71,7 @@ GlslCompiler::GlslCompiler(int argc, char **argv):
        getopt(argc, argv);
 
        if(target_version)
-               features = GL::SL::Features::from_opengl_version(GL::Version(target_version/100, target_version%100));
+               features = GL::SL::Features::from_api_version(GL::OPENGL, GL::Version(target_version/100, target_version%100));
 
        if(as_module)
        {