From 7ef92bb0acd12db41759e0b1a52e910eec556630 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Sat, 2 Apr 2011 17:04:25 -0300 Subject: [PATCH] fix a little thing --- src/framework/texturemanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/framework/texturemanager.cpp b/src/framework/texturemanager.cpp index a2dfc751..1e2c034f 100644 --- a/src/framework/texturemanager.cpp +++ b/src/framework/texturemanager.cpp @@ -50,7 +50,8 @@ TexturePtr TextureManager::get(const std::string& textureFile) else texture = it->second.lock(); } - else { // load texture + + if(!texture) { // load texture // currently only png textures are supported if(!boost::ends_with(textureFile, ".png")) { error("Unable to load texture %s, file format no supported.", textureFile.c_str());