From d25ff8fd2592f457b91e8a61240694af3902d23f Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Wed, 11 Feb 2015 16:02:16 +1000 Subject: 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 --- src/client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client.cpp') 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"); -- cgit v1.2.3