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/mapblock_mesh.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mapblock_mesh.h') diff --git a/src/mapblock_mesh.h b/src/mapblock_mesh.h index be56d4c58..98af92c74 100644 --- a/src/mapblock_mesh.h +++ b/src/mapblock_mesh.h @@ -45,8 +45,9 @@ struct MeshMakeData video::SColor m_highlight_mesh_color; IGameDef *m_gamedef; + bool m_use_shaders; - MeshMakeData(IGameDef *gamedef); + MeshMakeData(IGameDef *gamedef, bool use_shaders); /* Copy central data directly from block, and other data from -- cgit v1.2.3