X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Fmaterial.cpp;h=ace87e70954847d299061205826d9dacf9029919;hp=b737c03183b504b82592f5959cfd70e80ec10f77;hb=fcde8390ad577fe434dcd4b29e0f410d29f867c9;hpb=7f0e08f04536bf42b8f64e7dff5cc3e18b916c7b diff --git a/source/materials/material.cpp b/source/materials/material.cpp index b737c031..ace87e70 100644 --- a/source/materials/material.cpp +++ b/source/materials/material.cpp @@ -69,6 +69,15 @@ void Material::attach_texture_to(const Texture *tex, Texturing &texturing, Progr } #pragma GCC diagnostic pop +void Material::set_debug_name(const string &name) +{ +#ifdef DEBUG + shdata.set_debug_name(name+" [UBO]"); +#else + (void)name; +#endif +} + Material::MaterialRegistry &Material::get_material_registry() { static MaterialRegistry registry;