X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Ftechnique.cpp;h=b5ed6447c314c3e69be3bfe0fcb0c08be67cfc07;hp=a4d181629a122a802d8bd66509f3f01617784a88;hb=fcde8390ad577fe434dcd4b29e0f410d29f867c9;hpb=7f0e08f04536bf42b8f64e7dff5cc3e18b916c7b diff --git a/source/materials/technique.cpp b/source/materials/technique.cpp index a4d18162..b5ed6447 100644 --- a/source/materials/technique.cpp +++ b/source/materials/technique.cpp @@ -101,6 +101,16 @@ bool Technique::has_shaders() const return false; } +void Technique::set_debug_name(const std::string &name) +{ +#ifdef DEBUG + for(map::iterator i=passes.begin(); i!=passes.end(); ++i) + i->second.set_debug_name(format("%s [pass:%s]", name, i->first.str())); +#else + (void)name; +#endif +} + DataFile::Loader::ActionMap Technique::Loader::shared_actions;