From 2ceae9a0c121fe6f71e2eee6dd8517c2a30f3f40 Mon Sep 17 00:00:00 2001 From: Nick Majkic <8842171-majkic65@users.noreply.gitlab.com> Date: Mon, 18 Mar 2024 03:47:40 +0000 Subject: [PATCH] Nmajkic/clang fix --- src/video_core/video_core.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp index 1166dfb977..509ba8a5b4 100644 --- a/src/video_core/video_core.cpp +++ b/src/video_core/video_core.cpp @@ -13,7 +13,6 @@ #include "video_core/renderer_vulkan/renderer_vulkan.h" #include "video_core/video_core.h" - namespace { std::unique_ptr CreateRenderer( @@ -22,20 +21,15 @@ std::unique_ptr CreateRenderer( auto& device_memory = system.Host1x().MemoryManager(); switch (Settings::values.renderer_backend.GetValue()) { - #ifdef __APPLE__ +#ifdef __APPLE__ // do nothing for now, include metal in here at later date. - - - #else - +#else // openGL, not supported on Apple so not bothering to include if macos - case Settings::RendererBackend::OpenGL: + case Settings::RendererBackend::OpenGL: return std::make_unique(emu_window, device_memory, gpu, std::move(context)); - - - #endif - +#endif + // common renderers case Settings::RendererBackend::Vulkan: return std::make_unique(emu_window, device_memory, gpu, std::move(context));