Commit 741b0be9 authored by cutealien's avatar cutealien

Change font in MaterialViewer example as rendering of builtin font is messed...

Change font in MaterialViewer example as rendering of builtin font is messed up in GL on some systems (reported by randomMesh).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2943 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 4a03580f
......@@ -766,6 +766,12 @@ protected:
video::IVideoDriver * driver = Device->getVideoDriver ();
gui::IGUIEnvironment* guiEnv = Device->getGUIEnvironment();
// set a nicer font
gui::IGUISkin* skin = guiEnv->getSkin();
gui::IGUIFont* font = guiEnv->getFont("../../media/fonthaettenschweiler.bmp");
if (font)
skin->setFont(font);
createDefaultTextures(driver);
gui::IGUIContextMenu * menuBar = guiEnv->addMenu();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment