aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsweetbomber <ffrogger _zero_ at yahoo dot com>2013-06-15 17:44:59 +0100
committerIlya Zhuravlev <zhuravlevilya@ya.ru>2013-06-15 21:41:30 +0400
commit0413f8ad9d0c1457819f42909ee169287effe772 (patch)
tree6dac1cdfa31a84f0a7432e02340e0a82af217fe6 /src
parent93dfc3ec70007ab684ef71487081f0335eae0635 (diff)
downloadminetest-0413f8ad9d0c1457819f42909ee169287effe772.tar.gz
minetest-0413f8ad9d0c1457819f42909ee169287effe772.tar.bz2
minetest-0413f8ad9d0c1457819f42909ee169287effe772.zip
Removed a redundant step which degraded performance
Diffstat (limited to 'src')
-rw-r--r--src/mapblock_mesh.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mapblock_mesh.cpp b/src/mapblock_mesh.cpp
index 0f83e863c..293d93a4c 100644
--- a/src/mapblock_mesh.cpp
+++ b/src/mapblock_mesh.cpp
@@ -717,8 +717,7 @@ TileSpec getNodeTile(MapNode mn, v3s16 p, v3s16 dir, MeshMakeData *data)
u16 tile_index=facedir*16 + dir_i;
TileSpec spec = getNodeTileN(mn, p, dir_to_tile[tile_index], data);
spec.rotation=dir_to_tile[tile_index + 1];
- std::string name = data->m_gamedef->tsrc()->getTextureName(spec.texture.id);
- spec.texture = data->m_gamedef->tsrc()->getTexture(name);
+ spec.texture = data->m_gamedef->tsrc()->getTexture(spec.texture.id);
return spec;
}