Skip to content

Commit af49033

Browse files
committedSep 3, 2013
Fix remnants of s32 enable_shaders
1 parent 1ad9365 commit af49033

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
 

‎minetest.conf.example

+2-4
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,8 @@
166166
#trilinear_filter = false
167167
# Set to true to pre-generate all item visuals
168168
#preload_item_visuals = true
169-
# 0: disable shaders
170-
# (1: low level shaders; not implemented)
171-
# 2: enable high level shaders
172-
#enable_shaders = 2
169+
# Set to true to enable shaders. Disable them if video_driver = direct3d9/8.
170+
#enable_shaders = true
173171
# Set to true to enable textures bumpmapping. Requires shaders enabled.
174172
#enable_bumpmapping = false
175173
# The time in seconds it takes between repeated

‎src/mapblock_mesh.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ MapBlockMesh::~MapBlockMesh()
12941294

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

13001300
if(!m_has_animation)

0 commit comments

Comments
 (0)