]> git.mxchange.org Git - flightgear.git/blobdiff - src/Model/panelnode.cxx
Fix line endings
[flightgear.git] / src / Model / panelnode.cxx
index e3f9e49583940770700808397d21cc73ba142a67..bf553e2033b2231571cf1f0f1bc04175c38f28cb 100644 (file)
@@ -5,7 +5,6 @@
 #include <simgear/compiler.h>
 #include <vector>
 
-#include <GL/gl.h>
 #include <plib/sg.h>
 
 #include <Cockpit/panel.hxx>
@@ -48,6 +47,8 @@ FGPanelNode::FGPanelNode(SGPropertyNode* props)
     // panels).  This is a memory leak and should be fixed!`
     _panel->init();
 
+    _panel->setDepthTest( props->getBoolValue("depth-test") );
+
     // Initialize the matrices to the identity.  PLib prints warnings
     // when trying to invert singular matrices (e.g. when not using a
     // 3D panel).