mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-09 17:23:50 +01:00
CIrrDeviceLinux: don't create input context if no window
This broke the Null driver.
This commit is contained in:
parent
21cb990e75
commit
688debb643
@ -148,6 +148,9 @@ CIrrDeviceLinux::CIrrDeviceLinux(const SIrrlichtCreationParameters& param)
|
||||
if (!createWindow())
|
||||
return;
|
||||
setResizable(param.WindowResizable);
|
||||
#ifdef _IRR_COMPILE_WITH_X11_
|
||||
createInputContext();
|
||||
#endif
|
||||
}
|
||||
|
||||
// create cursor control
|
||||
@ -159,10 +162,6 @@ CIrrDeviceLinux::CIrrDeviceLinux(const SIrrlichtCreationParameters& param)
|
||||
if (!VideoDriver)
|
||||
return;
|
||||
|
||||
#ifdef _IRR_COMPILE_WITH_X11_
|
||||
createInputContext();
|
||||
#endif
|
||||
|
||||
createGUIAndScene();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user