diff --git a/components/resource/stats.cpp b/components/resource/stats.cpp index 1d78d7a4cf..bc63ddf583 100644 --- a/components/resource/stats.cpp +++ b/components/resource/stats.cpp @@ -42,6 +42,8 @@ Profiler::Profiler() { if (osgDB::Registry::instance()->getReaderWriterForExtension("ttf")) _font = osgMyGUI::DataManager::getInstance().getDataPath("DejaVuLGCSansMono.ttf"); + else + _font = ""; setKeyEventTogglesOnScreenStats(osgGA::GUIEventAdapter::KEY_F3); }