main_texture->bind();
if(material)
- material->apply();
+ material->bind();
}
void Object::finish_render(const ObjectPass &pass) const
}
else if(main_texture)
Texture::unbind();
+
+ if(material)
+ Material::unbind();
}
void Object::render(const ObjectPass &pass, const ObjectInstance *inst) const