fix crash and focus bug

This commit is contained in:
Eduardo Bart
2012-03-30 04:39:46 -03:00
parent 20e32ad2a0
commit c13a5b5dab
3 changed files with 4 additions and 3 deletions

View File

@@ -22,6 +22,7 @@
#include "texturemanager.h"
#include "animatedtexture.h"
#include "graphics.h"
#include <framework/core/resourcemanager.h>
#include <framework/thirdparty/apngloader.h>
@@ -54,6 +55,7 @@ TexturePtr TextureManager::getTexture(const std::string& textureFile)
texture = loadPNG(fin);
} catch(Exception& e) {
logError("unable to load texture '", textureFile, "': ", e.what());
texture = g_graphics.getEmptyTexture();
}
}