]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/globals.hxx
Get rid of RG16 buffer made possible by a different way to encode normals
[flightgear.git] / src / Main / globals.hxx
index 297d9c576cb27609a14042d72a32b0c4c9a72f35..9be19ff66d5157e20ea67959ff066786a129a627 100644 (file)
@@ -119,7 +119,7 @@ private:
     FGRouteMgr *route_mgr;
 
     // 2D panel
-    FGPanel *current_panel;
+    SGSharedPtr<FGPanel> current_panel;
 
     // ATC manager
     FGATCMgr *ATC_mgr;
@@ -243,7 +243,7 @@ public:
     inline void set_ATC_mgr( FGATCMgr *a ) {ATC_mgr = a; }
 
     inline FGPanel *get_current_panel() const { return current_panel; }
-    inline void set_current_panel( FGPanel *cp ) { current_panel = cp; }
+    void set_current_panel( FGPanel *cp );
 
     inline FGControls *get_controls() const { return controls; }
     inline void set_controls( FGControls *c ) { controls = c; }