diff --git a/src/app/app.cpp b/src/app/app.cpp index 694b3b2d..a0ea7c06 100644 --- a/src/app/app.cpp +++ b/src/app/app.cpp @@ -540,8 +540,10 @@ bool CApplication::Create() if (m_device == nullptr) { - m_device = MakeUnique(); GetLogger()->Error("Unknown graphics device: %s\n", m_graphics.c_str()); + GetLogger()->Info("Changing to default device\n"); + GetSystemUtils()->SystemDialog(SDT_ERROR, "Graphics initialization error", "You have selected invalid graphics device with -graphics switch. Game will use default OpenGL device instead."); + m_device = Gfx::CreateDevice(m_deviceConfig, "opengl"); } } else