1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 19:15:41 +00:00

puts an end of error spam when OSG is copmiled without Freetype support

This commit is contained in:
Bret Curtis 2020-04-26 22:20:57 +02:00
parent 3b9a51b8ac
commit 6d3f9ce307

View file

@ -8,6 +8,8 @@
#include <osgText/Text>
#include <osgDB/Registry>
#include <osgViewer/Viewer>
#include <osgViewer/Renderer>
@ -32,11 +34,13 @@ StatsHandler::StatsHandler():
_resourceStatsChildNum = 0;
if (osgDB::Registry::instance()->getReaderWriterForExtension("ttf"))
_font = osgMyGUI::DataManager::getInstance().getDataPath("DejaVuLGCSansMono.ttf");
}
Profiler::Profiler()
{
if (osgDB::Registry::instance()->getReaderWriterForExtension("ttf"))
_font = osgMyGUI::DataManager::getInstance().getDataPath("DejaVuLGCSansMono.ttf");
setKeyEventTogglesOnScreenStats(osgGA::GUIEventAdapter::KEY_F3);