diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 06b09583e..4707d61a1 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -42,6 +42,7 @@ #include #include #include +#include // #include // #include @@ -204,6 +205,8 @@ fgSetDefaults () fgSetBool("/sim/rendering/shading", true); fgSetBool("/sim/rendering/skyblend", true); fgSetBool("/sim/rendering/textures", true); + fgTie( "/sim/rendering/filtering", SGTextureFilterListener::getFilter, SGTextureFilterListener::setFilter, false); + fgSetInt("/sim/rendering/filtering", 1); fgSetBool("/sim/rendering/wireframe", false); fgSetBool("/sim/rendering/horizon-effect", false); fgSetBool("/sim/rendering/enhanced-lighting", false); @@ -1326,6 +1329,7 @@ struct OptionDesc { {"enable-skyblend", false, OPTION_BOOL, "/sim/rendering/skyblend", true, "", 0 }, {"disable-textures", false, OPTION_BOOL, "/sim/rendering/textures", false, "", 0 }, {"enable-textures", false, OPTION_BOOL, "/sim/rendering/textures", true, "", 0 }, + {"texture-filtering", false, OPTION_INT, "/sim/rendering/filtering", 1, "", 0 }, {"disable-wireframe", false, OPTION_BOOL, "/sim/rendering/wireframe", false, "", 0 }, {"enable-wireframe", false, OPTION_BOOL, "/sim/rendering/wireframe", true, "", 0 }, {"geometry", true, OPTION_FUNC, "", false, "", fgOptGeometry },