Fix crash when recreating irrlicht device

This commit is contained in:
Benau 2022-08-30 09:44:31 +08:00
parent 1703e829eb
commit c929002eba

View File

@ -673,6 +673,7 @@ void IrrDriver::initDevice()
m_device->clearSystemMessages(); m_device->clearSystemMessages();
m_device->run(); m_device->run();
m_device->drop(); m_device->drop();
GE::setVideoDriver(NULL);
m_device = createDeviceEx(params); m_device = createDeviceEx(params);