X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogram.cpp;h=270dbdc3e5675163017349d0cef901fcffaccdf8;hp=11ab151be4fcfef43586737969c43e638383c96b;hb=e598e9d8dacad73b7ee1688e2be738e94b07b9fa;hpb=e55f79ccb21e8c1be3d86f127e3ec1583e58ce92 diff --git a/source/program.cpp b/source/program.cpp index 11ab151b..270dbdc3 100644 --- a/source/program.cpp +++ b/source/program.cpp @@ -45,7 +45,7 @@ Program::Program(const std::string &source) if(source.find(';')==string::npos && source.size()>5 && !source.compare(source.size()-5, 5, ".glsl")) { if(RefPtr io = Resources::get_builtins().open(source)) - compiler.compile(*io); + compiler.compile(*io, source); else throw IO::file_not_found(source); }