From 510357492d788bc94b569678e360a367028214a9 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 18 Jan 2014 08:47:33 +0000 Subject: [PATCH] Bug-fix: cap model shader quality to 1.0 When using the slider, model shader should be capped to 1, not 3. --- Nasal/gui.nas | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Nasal/gui.nas b/Nasal/gui.nas index 5e18b7393..f3d25a753 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -1410,13 +1410,10 @@ var update_shader_settings = func() { setprop("/sim/rendering/shaders/landmass",qualityLvl); setprop("/sim/rendering/shaders/urban",qualityLvl); setprop("/sim/rendering/shaders/water",qualityLvl); - if (qualityLvl >= 3.0){ - qualityLvl = 3.0; - } - setprop("/sim/rendering/shaders/model",qualityLvl); if (qualityLvl >= 1.0){ qualityLvl = 1.0; } + setprop("/sim/rendering/shaders/model",qualityLvl); setprop("/sim/rendering/shaders/contrails",qualityLvl); setprop("/sim/rendering/shaders/crop",qualityLvl); setprop("/sim/rendering/shaders/generic",qualityLvl);