Navigation Menu

Skip to content

Commit

Permalink
Fix remnants of s32 enable_shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrl committed Sep 3, 2013
1 parent 1ad9365 commit af49033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions minetest.conf.example
Expand Up @@ -166,10 +166,8 @@
#trilinear_filter = false
# Set to true to pre-generate all item visuals
#preload_item_visuals = true
# 0: disable shaders
# (1: low level shaders; not implemented)
# 2: enable high level shaders
#enable_shaders = 2
# Set to true to enable shaders. Disable them if video_driver = direct3d9/8.
#enable_shaders = true
# Set to true to enable textures bumpmapping. Requires shaders enabled.
#enable_bumpmapping = false
# The time in seconds it takes between repeated
Expand Down
2 changes: 1 addition & 1 deletion src/mapblock_mesh.cpp
Expand Up @@ -1294,7 +1294,7 @@ MapBlockMesh::~MapBlockMesh()

bool MapBlockMesh::animate(bool faraway, float time, int crack, u32 daynight_ratio)
{
bool enable_shaders = (g_settings->getS32("enable_shaders") > 0);
bool enable_shaders = g_settings->getBool("enable_shaders");
bool enable_bumpmapping = g_settings->getBool("enable_bumpmapping");

if(!m_has_animation)
Expand Down

0 comments on commit af49033

Please sign in to comment.