diff options
author | Craig Robbins <kde.psych@gmail.com> | 2015-02-11 17:45:49 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-02-11 17:45:49 +1000 |
commit | c8f60bd224bf910d7521669ff4f90c372b289c3e (patch) | |
tree | 9b4afbaac6e71c7ab257fe86b989fd570cfee51d /src/mapblock_mesh.h | |
parent | 98b37e3e0d4d0bcea4d0a202f8519a39163b7493 (diff) | |
download | minetest-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/mapblock_mesh.h')
-rw-r--r-- | src/mapblock_mesh.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |