]> git.mxchange.org Git - flightgear.git/blobdiff - utils/fgpanel/panel.cxx
fgelev: tool to query scenery elevation.
[flightgear.git] / utils / fgpanel / panel.cxx
index 70c40876b5f38475827f6fb86bc6cc8e13ea9d1e..45620d22a2a4f6d91b33493036ec46aa855fb043 100644 (file)
@@ -40,7 +40,6 @@
 #include <plib/fnt.h>
 
 #include <simgear/debug/logstream.hxx>
-#include <simgear/math/SGMath.hxx>
 #include <simgear/misc/sg_path.hxx>
 
 #include "panel.hxx"
@@ -285,7 +284,7 @@ GLuint FGPanel::getInitDisplayList()
 void
 FGPanel::update (double dt)
 {
-  glCallList(getInitDisplayList());
+  /*glCallList*/(getInitDisplayList());
 
   // Draw the instruments.
   // Syd Adams: added instrument clipping
@@ -804,6 +803,11 @@ FGTextLayer::draw ()
     transform();
 
     text_renderer.setFont(ApplicationProperties::fontCache.getTexFont(_font_name.c_str()));
+    if (!text_renderer.getFont())
+    {
+        SG_LOG( SG_COCKPIT, SG_ALERT, "Missing font file: " << _font_name );
+        return;
+    }
 
     text_renderer.setPointSize(_pointSize);
     text_renderer.begin();