Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-11-16 18:25:03 +0000
committerStijn Buys <ingar@osirion.org>2013-11-16 18:25:03 +0000
commit302f11ce816ffe4b51f48c42972bb58475bcca5d (patch)
treef7d4969f7b3abe27e069589bcebc99a14d70e523 /src/render/textures.cc
parent359f98adee3e0308dcd92dc59b68f699527d1acb (diff)
Material API cleanups,
added support for bounds materials.
Diffstat (limited to 'src/render/textures.cc')
-rw-r--r--src/render/textures.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/textures.cc b/src/render/textures.cc
index 05c73da..5a90640 100644
--- a/src/render/textures.cc
+++ b/src/render/textures.cc
@@ -418,7 +418,7 @@ size_t Textures::bind(const size_t texture, const bool filter)
void Textures::material_loader(model::Material *material)
{
- if (material->flag_is_set(model::Material::FlagTexture) && (material->texture().size() > 0)) {
+ if (material->has_flag(model::Material::FlagTexture) && (material->texture().size() > 0)) {
size_t id = load(material->texture());
material->set_texture_id(id);
material->set_size(texture_size[id]);