Fixed exit on startup when force legacy device is set in graphics restrictions.

It was working on Linux, but on Windows we need to clear system messages when closing irrlicht device.
This commit is contained in:
deve 2016-09-23 10:22:56 +02:00
parent 8ceb85ef14
commit 1a3daafbff

View File

@ -562,6 +562,8 @@ void IrrDriver::initDevice()
if (!ProfileWorld::isNoGraphics() && recreate_device)
{
m_device->closeDevice();
m_device->clearSystemMessages();
m_device->run();
m_device->drop();
m_device = createDeviceEx(params);