I have it set up so it reloads all of the textures under the new device and everything works great, except that all of the fonts stop working.
Trying to call getFont again doesn't seem to make any sort of difference.
Right now my code looks something like this:
Code: Select all
font = guienv->getFont("GFX/Font/console.xml");
...
if(font)guienv->removeFont(font); // added this after finding it in the forums, but sounds like this isn't functional at the moment?
device->closeDevice();
device = createDevice( EDT_OPENGL, dimension2d<u32>(MAXX, MAXY), 32, false, false, false, events);
if (!device) return;
guienv = device->getGUIEnvironment();
font = guienv->getFont("GFX/Font/console.xml");
statictext->setOverrideFont(font);