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:
parent
8ceb85ef14
commit
1a3daafbff
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user