From: <sv...@ww...> - 2006-01-14 03:29:44
|
Author: mkrose Date: 2006-01-13 19:29:36 -0800 (Fri, 13 Jan 2006) New Revision: 1816 Modified: trunk/CSP/csp/cspsim/f16/F16HUD.cpp Log: Temporary workaround for segv related to special fonts. This partially breaks DED rendering in the HUD. The full (correct) fix will be made in a subsequent change. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1816 Modified: trunk/CSP/csp/cspsim/f16/F16HUD.cpp =================================================================== --- trunk/CSP/csp/cspsim/f16/F16HUD.cpp 2006-01-13 08:32:20 UTC (rev 1815) +++ trunk/CSP/csp/cspsim/f16/F16HUD.cpp 2006-01-14 03:29:36 UTC (rev 1816) @@ -69,7 +69,8 @@ public: F16HUDFont(float height, osg::Vec4 const &color): m_Height(height), m_Color(color), m_Font(NULL) { //m_Font = new ReverseAltFont(osgText::readFontFile("hud.ttf")); // FIXME LEAKS! - m_Font = new ScaledAltFont(osgText::readFontFile("hud.ttf"), 1.2); // FIXME LEAKS! + //m_Font = new ScaledAltFont(osgText::readFontFile("hud.ttf"), 1.2); // FIXME LEAKS! + m_Font = osgText::readFontFile("hud.ttf"); // FIXME LEAKS! } virtual void apply(osgText::Text *text) { text->setFont(m_Font); |