]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/unlitmaterial.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / materials / unlitmaterial.cpp
index 38dbd3a3bdfc9104295fb87983839b9d19cdff29..e1979051672481f277b953253589e88925c23716 100644 (file)
@@ -11,9 +11,7 @@ const Tag UnlitMaterial::texture_tags[] =
        Tag()
 };
 
-UnlitMaterial::UnlitMaterial():
-       texture(0),
-       vertex_color(false)
+UnlitMaterial::UnlitMaterial()
 {
        set_color(Color(1.0f));
 }
@@ -25,14 +23,6 @@ void UnlitMaterial::fill_program_info(string &module_name, map<string, int> &spe
        spec_values["use_vertex_color"] = vertex_color;
 }
 
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-void UnlitMaterial::attach_textures_to(Texturing &texturing, ProgramData &tex_shdata) const
-{
-       attach_texture_to(texture, texturing, tex_shdata, "color_tex");
-}
-#pragma GCC diagnostic pop
-
 const Texture *UnlitMaterial::get_texture(Tag tag) const
 {
        if(tag==texture_tags[0])
@@ -60,12 +50,6 @@ void UnlitMaterial::set_vertex_color(bool vc)
 
 DataFile::Loader::ActionMap UnlitMaterial::Loader::shared_actions;
 
-UnlitMaterial::Loader::Loader(UnlitMaterial &m):
-       DerivedObjectLoader<UnlitMaterial, Material::PropertyLoader<UnlitMaterial> >(m)
-{
-       set_actions(shared_actions);
-}
-
 UnlitMaterial::Loader::Loader(UnlitMaterial &m, Collection &c):
        DerivedObjectLoader<UnlitMaterial, Material::PropertyLoader<UnlitMaterial> >(m, c)
 {