mirror of
https://github.com/minetest/irrlicht.git
synced 2025-01-07 22:07:32 +01:00
Fix crash when SDL context fails to create
This commit is contained in:
parent
a3ec3a88e8
commit
f86b9b93e8
@ -265,8 +265,10 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters& param)
|
|||||||
// create window
|
// create window
|
||||||
if (CreationParams.DriverType != video::EDT_NULL)
|
if (CreationParams.DriverType != video::EDT_NULL)
|
||||||
{
|
{
|
||||||
// create the window, only if we do not use the null device
|
if (!createWindow()) {
|
||||||
createWindow();
|
Close = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user