diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-04-06 16:16:59 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-04-06 16:16:59 +0100 |
commit | afe623ba793f9f4c51f94abe6464020d22387c9d (patch) | |
tree | ea7c92ce42fb8645146007ab2d1398023efad448 /src/texturecache.cpp | |
parent | 905f72775fa91b0a467f3c0847c60cf0f85a6d80 (diff) | |
download | YAGE-afe623ba793f9f4c51f94abe6464020d22387c9d.tar.gz YAGE-afe623ba793f9f4c51f94abe6464020d22387c9d.zip |
Improved files
Diffstat (limited to 'src/texturecache.cpp')
-rw-r--r-- | src/texturecache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/texturecache.cpp b/src/texturecache.cpp index e46566ff..9bebc72c 100644 --- a/src/texturecache.cpp +++ b/src/texturecache.cpp @@ -10,13 +10,13 @@ TextureCache::TextureCache() TextureCache::~TextureCache() {} -GlTexture TextureCache::getTexture(const std::string &texture_path) +Texture TextureCache::getTexture(const std::string &texture_path) { auto itr = texture_map_.find(texture_path); if(itr == texture_map_.end()) { - GlTexture new_texture = ImageLoader::loadPng(texture_path); + Texture new_texture = ImageLoader::loadPng(texture_path); texture_map_.insert(make_pair(texture_path, new_texture)); return new_texture; } |