summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorCraig Robbins <kde.psych@gmail.com>2015-02-11 17:45:49 +1000
committerCraig Robbins <kde.psych@gmail.com>2015-02-11 17:45:49 +1000
commitc8f60bd224bf910d7521669ff4f90c372b289c3e (patch)
tree9b4afbaac6e71c7ab257fe86b989fd570cfee51d /src/client.cpp
parent98b37e3e0d4d0bcea4d0a202f8519a39163b7493 (diff)
downloadminetest-c8f60bd224bf910d7521669ff4f90c372b289c3e.tar.gz
minetest-c8f60bd224bf910d7521669ff4f90c372b289c3e.tar.bz2
minetest-c8f60bd224bf910d7521669ff4f90c372b289c3e.zip
Remove workaround in itemdef.cpp to enable/disable/enable "enable_shaders" setting
* Increase performance (client) * Avoid changing a global value to solve a local problem
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index b13631f95..107e16f14 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -283,6 +283,7 @@ Client::Client(
}
m_cache_smooth_lighting = g_settings->getBool("smooth_lighting");
+ m_cache_enable_shaders = g_settings->getBool("enable_shaders");
}
void Client::Stop()
@@ -2681,7 +2682,7 @@ void Client::addUpdateMeshTask(v3s16 p, bool ack_to_server, bool urgent)
Create a task to update the mesh of the block
*/
- MeshMakeData *data = new MeshMakeData(this);
+ MeshMakeData *data = new MeshMakeData(this, m_cache_enable_shaders);
{
//TimeTaker timer("data fill");