From c8f60bd224bf910d7521669ff4f90c372b289c3e Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Wed, 11 Feb 2015 17:45:49 +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/itemdef.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/itemdef.cpp') diff --git a/src/itemdef.cpp b/src/itemdef.cpp index ac67c5b27..d356b96c5 100644 --- a/src/itemdef.cpp +++ b/src/itemdef.cpp @@ -362,8 +362,6 @@ public: scene::IMesh *node_mesh = NULL; - bool reenable_shaders = false; - if (need_rtt_mesh || need_wield_mesh) { u8 param1 = 0; if (f.param_type == CPT_LIGHT) @@ -372,11 +370,7 @@ public: /* Make a mesh from the node */ - if (g_settings->getBool("enable_shaders")) { - reenable_shaders = true; - g_settings->setBool("enable_shaders", false); - } - MeshMakeData mesh_make_data(gamedef); + MeshMakeData mesh_make_data(gamedef, false); u8 param2 = 0; if (f.param_type_2 == CPT2_WALLMOUNTED) param2 = 1; @@ -443,9 +437,6 @@ public: if (node_mesh) node_mesh->drop(); - - if (reenable_shaders) - g_settings->setBool("enable_shaders",true); } // Put in cache -- cgit v1.2.3