X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Ftechnique.cpp;h=60eba997c05f2f0cd386039e59acd3c77bef1d45;hp=268149f8cb4bff921d9459d2e721e99235fd6257;hb=ae45c0397e2cb8f0a01f2f31d01c95ff3870271e;hpb=23d4100160bfa33359ce297b6b36244abcaa5f82 diff --git a/source/materials/technique.cpp b/source/materials/technique.cpp index 268149f8..60eba997 100644 --- a/source/materials/technique.cpp +++ b/source/materials/technique.cpp @@ -105,12 +105,6 @@ void Technique::set_debug_name(const string &name) DataFile::Loader::ActionMap Technique::Loader::shared_actions; -Technique::Loader::Loader(Technique &t): - DataFile::CollectionObjectLoader(t, 0) -{ - set_actions(shared_actions); -} - Technique::Loader::Loader(Technique &t, Collection &c): DataFile::CollectionObjectLoader(t, &c) { @@ -138,14 +132,9 @@ void Technique::Loader::inherit(const string &n) void Technique::Loader::method(const string &n) { RenderMethod p; - if(coll) - { - RenderMethod::Loader ldr(p, get_collection()); - ldr.set_inline_base_name(format("%s/%s.method", (inline_base_name.empty() ? FS::basename(get_source()) : inline_base_name), n)); - load_sub_with(ldr); - } - else - load_sub(p); + RenderMethod::Loader ldr(p, get_collection()); + ldr.set_inline_base_name(format("%s/%s.method", (inline_base_name.empty() ? FS::basename(get_source()) : inline_base_name), n)); + load_sub_with(ldr); if(!p.get_shader_program()) throw logic_error("no shader program in method");