]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/WindowBuilder.cxx
Honor /sim/rendering/shadows/enabled preference
[flightgear.git] / src / Main / WindowBuilder.cxx
index cb19eb77261c8459d0b00e9db02b2775b0c77ac5..239a5e67550ce48e5914c85f809946fc1fd70707 100644 (file)
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
 #include "WindowBuilder.hxx"
 
 #include "WindowSystemAdapter.hxx"
@@ -80,7 +84,7 @@ WindowBuilder::makeDefaultTraits(bool stencil)
     traits->mipMapGeneration = true;
     traits->windowName = "FlightGear";
     // XXX should check per window too.
-    traits->sampleBuffers = fgGetBool("/sim/rendering/multi-sample-buffers", traits->sampleBuffers);
+    traits->sampleBuffers = fgGetInt("/sim/rendering/multi-sample-buffers", traits->sampleBuffers);
     traits->samples = fgGetInt("/sim/rendering/multi-samples", traits->samples);
     traits->vsync = fgGetBool("/sim/rendering/vsync-enable", traits->vsync);
     traits->windowDecoration = !fgGetBool("/sim/startup/fullscreen");