From: ShadowNinja Date: Sat, 7 Dec 2013 03:40:04 +0000 (-0500) Subject: Fix paralax occlusion setting X-Git-Tag: 0.4.9~50 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=96f753a108600619f94015bf889a73d97e44ce3a;p=oweals%2Fminetest.git Fix paralax occlusion setting --- diff --git a/src/game.cpp b/src/game.cpp index 22abe4c74..68bd12b97 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -821,7 +821,7 @@ public: services->setPixelShaderConstant("enableBumpmapping", &enable_bumpmapping, 1); float enable_parallax_occlusion = 0; - if (g_settings->getBool("enable_parallax_occlusion"));{ + if (g_settings->getBool("enable_parallax_occlusion")) { enable_parallax_occlusion = 1; float parallax_occlusion_scale = g_settings->getFloat("parallax_occlusion_scale"); services->setPixelShaderConstant("parallaxOcclusionScale", ¶llax_occlusion_scale, 1);