]> git.tdb.fi Git - libs/gl.git/blobdiff - source/technique.h
Properly handle the case where an object doesn't have a main texture but its techniqu...
[libs/gl.git] / source / technique.h
index 410e7fb46928ad812cfe39187557fbe984647a6c..711db79dce2af54f4adb45e411caf3b82acd2b50 100644 (file)
@@ -66,6 +66,7 @@ public:
        unsigned get_n_textures() const { return tex_names.size(); }
        unsigned get_texture_index(const std::string &) const;
        const Texture *get_texture(unsigned) const;
+       const Texture *get_main_texture() const { return main_texture; }
        const Material *get_material() const { return material; }
 };