Don't poll irrlicht device without graphics
It fixed crashes for joystick event which does XResetScreenSaver
This commit is contained in:
parent
310caebc34
commit
148dc49817
@ -1425,9 +1425,12 @@ namespace GUIEngine
|
||||
// This will avoid no response in windows, also allow showing loading
|
||||
// icon in apple device, because apple device only update render
|
||||
// buffer if you poll the mainloop
|
||||
if (!ProfileWorld::isNoGraphics())
|
||||
{
|
||||
g_device->setEventReceiver(NULL);
|
||||
g_device->run();
|
||||
g_device->setEventReceiver(EventHandler::get());
|
||||
}
|
||||
|
||||
// If launch is finished, pause & display the story mode timers
|
||||
if ( !launching)
|
||||
|
@ -641,8 +641,9 @@ void MainLoop::renderGUI(int phase, int loop_index, int loop_size)
|
||||
#ifdef SERVER_ONLY
|
||||
return;
|
||||
#else
|
||||
if (NetworkConfig::get()->isNetworking() &&
|
||||
NetworkConfig::get()->isServer() )
|
||||
if ((NetworkConfig::get()->isNetworking() &&
|
||||
NetworkConfig::get()->isServer()) ||
|
||||
ProfileWorld::isNoGraphics())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user