}
TexturePtr
TextureManager::get(const std::string& _filename)
{
std::string filename = FileSystem::normalize(_filename);
}
TexturePtr
TextureManager::get(const std::string& _filename)
{
std::string filename = FileSystem::normalize(_filename);
texture = i->second.lock();
if(!texture) {
texture = create_image_texture(filename);
texture->cache_filename = filename;
texture = i->second.lock();
if(!texture) {
texture = create_image_texture(filename);
texture->cache_filename = filename;
- for(std::vector<SavedTexture>::iterator i = saved_textures.begin();
- i != saved_textures.end(); ++i) {
+ for(std::vector<SavedTexture>::iterator i = m_saved_textures.begin();
+ i != m_saved_textures.end(); ++i) {