diff options
author | Craig Robbins <kde.psych@gmail.com> | 2015-02-11 16:02:16 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-02-11 16:02:16 +1000 |
commit | d25ff8fd2592f457b91e8a61240694af3902d23f (patch) | |
tree | 9b1a4f3eda3cd5d2ed1be704a69e0f1b80501c83 /src/mapblock_mesh.h | |
parent | cfca5f99e62a32b5488d93f771453ef6935c5d4e (diff) | |
download | minetest-d25ff8fd2592f457b91e8a61240694af3902d23f.tar.gz minetest-d25ff8fd2592f457b91e8a61240694af3902d23f.tar.bz2 minetest-d25ff8fd2592f457b91e8a61240694af3902d23f.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 |