]> git.tdb.fi Git - libs/gl.git/commitdiff
Pass the file name from Resources to ProgramCompiler
authorMikko Rasa <tdb@tdb.fi>
Sun, 22 Apr 2018 08:48:12 +0000 (11:48 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 22 Apr 2018 08:48:12 +0000 (11:48 +0300)
source/resources.cpp

index c8e61ef8286d0b54c5364286d622985b0ed308f8..b8eec774387ea94233c6aa0223095199042ea12e 100644 (file)
@@ -141,7 +141,7 @@ Program *Resources::create_program(const string &name)
        if(RefPtr<IO::Seekable> io = open_from_sources(name))
        {
                ProgramCompiler compiler;
-               compiler.compile(*io, this);
+               compiler.compile(*io, this, name);
                RefPtr<Program> program = new Program;
                compiler.add_shaders(*program);
                program->link();