X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterials%2Ftechnique.cpp;fp=source%2Fmaterials%2Ftechnique.cpp;h=a4d181629a122a802d8bd66509f3f01617784a88;hb=9549f3401a70ca0359324a3e56e1e334981e5516;hp=12111e5e675305aa98859bf1ba58f2c332bb544e;hpb=4ae2ffa3057af9524a84ba322c0db32d6fcae8f2;p=libs%2Fgl.git diff --git a/source/materials/technique.cpp b/source/materials/technique.cpp index 12111e5e..a4d18162 100644 --- a/source/materials/technique.cpp +++ b/source/materials/technique.cpp @@ -102,19 +102,21 @@ bool Technique::has_shaders() const } +DataFile::Loader::ActionMap Technique::Loader::shared_actions; + Technique::Loader::Loader(Technique &t): DataFile::CollectionObjectLoader(t, 0) { - init(); + set_actions(shared_actions); } Technique::Loader::Loader(Technique &t, Collection &c): DataFile::CollectionObjectLoader(t, &c) { - init(); + set_actions(shared_actions); } -void Technique::Loader::init() +void Technique::Loader::init_actions() { add("inherit", &Loader::inherit); add("pass", &Loader::pass);