]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resources/resources.cpp
Refactor the interface of SL::Compiler
[libs/gl.git] / source / resources / resources.cpp
index 11099ae077d935b8daf66318d37cf64e5eb768f4..114a08ecf838f0f6fd6fbf5c517fa64e9a07fe5f 100644 (file)
@@ -173,7 +173,8 @@ Program *Resources::create_program(const string &name)
        if(RefPtr<IO::Seekable> io = open_raw(name))
        {
                SL::Compiler compiler;
-               compiler.compile(*io, this, name);
+               compiler.load_source(*io, this, name);
+               compiler.compile();
                RefPtr<Program> program = new Program;
                compiler.add_shaders(*program);
                program->link();