From d65d6d26b8069c431999f687630513ce9b47a3ac Mon Sep 17 00:00:00 2001 From: emiyl Date: Mon, 20 Apr 2026 23:27:08 +0100 Subject: [PATCH] wrap this switch in braces --- src/gui/wxgui/GeneralSettings2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/wxgui/GeneralSettings2.cpp b/src/gui/wxgui/GeneralSettings2.cpp index c8ab14a0..6d57b5ac 100644 --- a/src/gui/wxgui/GeneralSettings2.cpp +++ b/src/gui/wxgui/GeneralSettings2.cpp @@ -1743,6 +1743,7 @@ void GeneralSettings2::HandleGraphicsApiSelection() { #ifdef ENABLE_OPENGL case GraphicAPI::kOpenGL: + { // OpenGL m_vsync->AppendString(_("Off")); m_vsync->AppendString(_("On")); @@ -1760,9 +1761,11 @@ void GeneralSettings2::HandleGraphicsApiSelection() m_force_mesh_shaders->Disable(); #endif break; + } #endif #ifdef ENABLE_VULKAN case GraphicAPI::kVulkan: + { // Vulkan m_gx2drawdone_sync->Disable(); m_async_compile->Enable(); @@ -1801,9 +1804,11 @@ void GeneralSettings2::HandleGraphicsApiSelection() } } break; + } #endif #if ENABLE_METAL case GraphicAPI::kMetal: + { // Metal m_gx2drawdone_sync->Disable(); m_async_compile->Enable(); @@ -1838,6 +1843,7 @@ void GeneralSettings2::HandleGraphicsApiSelection() } break; } + } #endif }