From 61bd2a6e702a161ed7114eba1e1bb04745703d1c Mon Sep 17 00:00:00 2001 From: Benau Date: Mon, 31 Oct 2022 09:31:44 +0800 Subject: [PATCH] Fix legacy device in switch homebrew Allow setting it from config.xml --- src/graphics/irr_driver.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index fcffe5928..7bc05df97 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -184,9 +184,7 @@ IrrDriver::IrrDriver() p.DriverType = video::EDT_OPENGL; p.Bits = 24U; p.WindowSize = core::dimension2d(1280,720); -#ifdef FORCE_LEGACY - p.ForceLegacyDevice = true; -#endif + p.ForceLegacyDevice = UserConfigParams::m_force_legacy_device; #else p.DriverType = video::EDT_NULL; p.Bits = 16U;