Browse Source

fix a little thing

Eduardo Bart 10 years ago
parent
commit
7ef92bb0ac
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/framework/texturemanager.cpp

+ 2
- 1
src/framework/texturemanager.cpp View File

@@ -50,7 +50,8 @@ TexturePtr TextureManager::get(const std::string& textureFile)
50 50
         else
51 51
             texture = it->second.lock();
52 52
     }
53
-    else { // load texture
53
+
54
+    if(!texture) { // load texture
54 55
         // currently only png textures are supported
55 56
         if(!boost::ends_with(textureFile, ".png")) {
56 57
             error("Unable to load texture %s, file format no supported.", textureFile.c_str());

Loading…
Cancel
Save