forked from Mirrorlandia_minetest/irrlicht
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
|
||||
if (CreationParams.DriverType != video::EDT_NULL)
|
||||
{
|
||||
// create the window, only if we do not use the null device
|
||||
createWindow();
|
||||
if (!createWindow()) {
|
||||
Close = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user