From 4c09d459cbcdcd20adcd35afc1ba2747cb4691a1 Mon Sep 17 00:00:00 2001 From: Marianne Gagnon Date: Sat, 12 Sep 2015 19:44:58 -0400 Subject: [PATCH] Fix gamepad visualisation mode by request a legacy openGL context. Temporary fix, the proper long-term fix will be to rewrite that screen with modern OpenGL. See #2098 --- src/graphics/irr_driver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index f7fe35376..d34091ac7 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -422,7 +422,8 @@ void IrrDriver::initDevice() m_device = NULL; SIrrlichtCreationParameters params; - params.ForceLegacyDevice = UserConfigParams::m_force_legacy_device; + params.ForceLegacyDevice = (UserConfigParams::m_force_legacy_device || + UserConfigParams::m_gamepad_visualisation); // Try 32 and, upon failure, 24 then 16 bit per pixels for (int bits=32; bits>15; bits -=8)