From: Mikko Rasa Date: Sun, 22 Apr 2018 08:48:12 +0000 (+0300) Subject: Pass the file name from Resources to ProgramCompiler X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=996412ebcbe08c1dd3db3ecb53d24a4edcd20041;p=libs%2Fgl.git Pass the file name from Resources to ProgramCompiler --- diff --git a/source/resources.cpp b/source/resources.cpp index c8e61ef8..b8eec774 100644 --- a/source/resources.cpp +++ b/source/resources.cpp @@ -141,7 +141,7 @@ Program *Resources::create_program(const string &name) if(RefPtr io = open_from_sources(name)) { ProgramCompiler compiler; - compiler.compile(*io, this); + compiler.compile(*io, this, name); RefPtr program = new Program; compiler.add_shaders(*program); program->link();