aboutsummaryrefslogtreecommitdiff
path: root/src/client/wieldmesh.cpp
diff options
context:
space:
mode:
authorx2048 <codeforsmile@gmail.com>2022-07-09 22:26:39 +0200
committerGitHub <noreply@github.com>2022-07-09 22:26:39 +0200
commit7c261118e06c630ea9ad00f20d7005b8edc108dd (patch)
tree44a2b6be86343cb5b157f3dfe8570a89b7b15ea1 /src/client/wieldmesh.cpp
parentb15393c2a5e43e5493c767877cf48b1a510736d6 (diff)
downloadminetest-7c261118e06c630ea9ad00f20d7005b8edc108dd.tar.gz
minetest-7c261118e06c630ea9ad00f20d7005b8edc108dd.tar.bz2
minetest-7c261118e06c630ea9ad00f20d7005b8edc108dd.zip
Release shadow mapping resources when not needed (#12497)
Diffstat (limited to 'src/client/wieldmesh.cpp')
-rw-r--r--src/client/wieldmesh.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/client/wieldmesh.cpp b/src/client/wieldmesh.cpp
index 25b343573..0a89e2aa2 100644
--- a/src/client/wieldmesh.cpp
+++ b/src/client/wieldmesh.cpp
@@ -556,10 +556,6 @@ void WieldMeshSceneNode::changeToMesh(scene::IMesh *mesh)
if (m_shadow) {
// Add mesh to shadow caster
m_shadow->addNodeToShadowList(m_meshnode);
-
- // Set shadow texture
- for (u32 i = 0; i < m_meshnode->getMaterialCount(); i++)
- m_meshnode->setMaterialTexture(3, m_shadow->get_texture());
}
}