mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-12 19:44:17 +01:00
main: Eliminate variable shadowing
This commit is contained in:
parent
742f021fdf
commit
0eeee431dc
@ -934,8 +934,7 @@ void GMainWindow::InitializeWidgets() {
|
|||||||
Settings::values.renderer_backend.SetValue(Settings::RendererBackend::Vulkan);
|
Settings::values.renderer_backend.SetValue(Settings::RendererBackend::Vulkan);
|
||||||
} else {
|
} else {
|
||||||
Settings::values.renderer_backend.SetValue(Settings::RendererBackend::OpenGL);
|
Settings::values.renderer_backend.SetValue(Settings::RendererBackend::OpenGL);
|
||||||
const auto filter = Settings::values.scaling_filter.GetValue();
|
if (Settings::values.scaling_filter.GetValue() == Settings::ScalingFilter::Fsr) {
|
||||||
if (filter == Settings::ScalingFilter::Fsr) {
|
|
||||||
Settings::values.scaling_filter.SetValue(Settings::ScalingFilter::NearestNeighbor);
|
Settings::values.scaling_filter.SetValue(Settings::ScalingFilter::NearestNeighbor);
|
||||||
UpdateFilterText();
|
UpdateFilterText();
|
||||||
}
|
}
|
||||||
@ -1508,7 +1507,7 @@ void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t
|
|||||||
|
|
||||||
// Register an ExecuteProgram callback such that Core can execute a sub-program
|
// Register an ExecuteProgram callback such that Core can execute a sub-program
|
||||||
system->RegisterExecuteProgramCallback(
|
system->RegisterExecuteProgramCallback(
|
||||||
[this](std::size_t program_index) { render_window->ExecuteProgram(program_index); });
|
[this](std::size_t program_index_) { render_window->ExecuteProgram(program_index_); });
|
||||||
|
|
||||||
// Register an Exit callback such that Core can exit the currently running application.
|
// Register an Exit callback such that Core can exit the currently running application.
|
||||||
system->RegisterExitCallback([this]() { render_window->Exit(); });
|
system->RegisterExitCallback([this]() { render_window->Exit(); });
|
||||||
|
Loading…
Reference in New Issue
Block a user