]> git.mxchange.org Git - flightgear.git/blobdiff - src/Model/panelnode.cxx
Don't restore initial screen geometry because there is nothing in fg_os* to resize...
[flightgear.git] / src / Model / panelnode.cxx
index 30f2e4a6c7cb9c68d72b05da105480353140af97..bf553e2033b2231571cf1f0f1bc04175c38f28cb 100644 (file)
@@ -5,14 +5,15 @@
 #include <simgear/compiler.h>
 #include <vector>
 
-#include <GL/gl.h>
 #include <plib/sg.h>
 
-#include <Main/fg_props.hxx>
 #include <Cockpit/panel.hxx>
 #include <Cockpit/panel_io.hxx>
 #include "panelnode.hxx"
 
+SG_USING_STD(vector);
+
+
 // Static (!) handling for all 3D panels in the program.  Very
 // clumsy.  Replace with per-aircraft handling.
 vector<FGPanelNode*> all_3d_panels;
@@ -46,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).