#include <simgear/compiler.h>
+#if defined (SG_MAC)
+#include <GLUT/glut.h>
+#else
#include <GL/glut.h>
+#endif
#include <plib/fnt.h>
void
FGPanel::update (double dt)
{
- glCallList(getInitDisplayList());
+ /*glCallList*/(getInitDisplayList());
// Draw the instruments.
// Syd Adams: added instrument clipping
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();