fix a little thing

这个提交包含在:
Eduardo Bart 2011-04-02 17:04:25 -03:00
父节点 c40b827828
当前提交 7ef92bb0ac
共有 1 个文件被更改,包括 2 次插入1 次删除

查看文件

@ -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());