]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/wxradar.cxx
Fix line endings
[flightgear.git] / src / Instrumentation / wxradar.cxx
index ad4d3db0cfdf3f4b8c87725678d0e7879a98d175..829af7b258a8286989bbae47b5b74c12fd38f2f2 100644 (file)
 //
 //
 
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
 #include <plib/sg.h>
 #include <plib/ssg.h>
 #include <Main/fg_props.hxx>
@@ -70,8 +74,6 @@ wxRadarBg::wxRadarBg ()
 
 wxRadarBg::~wxRadarBg ()
 {
-    ssgDeRefDelete(resultTexture);
-    ssgDeRefDelete(wxEcho);
 }
 
 void
@@ -83,12 +85,10 @@ wxRadarBg::init ()
     _Instrument = fgGetNode(branch.c_str(), num, true );
     _serviceable_node = _Instrument->getChild("serviceable", 0, true);
     resultTexture = FGTextureManager::createTexture( odgauge_name );
-    resultTexture->ref();
     SGPath tpath(globals->get_fg_root());
     tpath.append("Aircraft/Instruments/Textures/wxecho.rgb");
     // no mipmap or else alpha will mix with pixels on the border of shapes, ruining the effect
     wxEcho = new ssgTexture( tpath.c_str(), false, false, false);
-    wxEcho->ref();
 
     _Instrument->setFloatValue("trk", 0.0);
     _Instrument->setFloatValue("tilt", 0.0);