VERY experimental Nintendo Switch 2 emulator
C++
bootmanager: Remove inaccurate switch
lat9nq3573979d27c2
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cppindex 98161cc27d..b064c9c644 100644--- a/src/yuzu/bootmanager.cpp+++ b/src/yuzu/bootmanager.cpp@@ -153,17 +153,8 @@ public:// disable vsync for any shared contextsauto format = share_context->format();- const int swap_interval = [&]() {- switch (Settings::values.vsync_mode.GetValue()) {- case Settings::VSyncMode::Immediate:- return 0;- case Settings::VSyncMode::FIFO:- return 1;- case Settings::VSyncMode::Mailbox:- return 2;- }- return 0;- }();+ const int swap_interval =+ Settings::values.vsync_mode.GetValue() == Settings::VSyncMode::Immediate ? 0 : 1;format.setSwapInterval(main_surface ? swap_interval : 0);diff --git a/src/yuzu/bootmanager.h b/src/yuzu/bootmanager.hindex bb4eca07f4..8a69cf9731 100644--- a/src/yuzu/bootmanager.h+++ b/src/yuzu/bootmanager.h@@ -14,6 +14,7 @@#include <QTouchEvent>#include <QWidget>+#include "common/logging/log.h"#include "common/polyfill_thread.h"#include "common/thread.h"#include "core/frontend/emu_window.h"