aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOmar Mahboubi <166836773+omar-mahboubi@users.noreply.github.com>2026-10-30 15:05:46 +0100
committerGitHub <noreply@github.com>2026-10-30 15:05:46 +0100
commit62de5e8e4c97c3df8c56fb0922631f3af430dacf (patch)
treea9a2a91ca7d3432e67ee89803b4f847bdc936bfb /src
parent5d7b3b0abd4883394edc3d656e08d66067bfa5bd (diff)
parent487d04f8edf641288c8023009600d5d306cad586 (diff)
Merge pull request #34 from givethesourceplox/nx2-moltenvk-metal-layer
yuzu_cmd: give MoltenVK the view's CAMetalLayer
Diffstat (limited to 'src')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl3_vk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl3_vk.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl3_vk.cpp
index afbe67716f..08e0db10da 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl3_vk.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl3_vk.cpp
@@ -73,7 +73,7 @@ EmuWindow_SDL3_VK::EmuWindow_SDL3_VK(InputCommon::InputSubsystem* input_subsyste
} else if (SDL_GetPointerProperty(window_props, SDL_PROP_WINDOW_COCOA_WINDOW_POINTER,
nullptr) != nullptr) {
window_info.type = Core::Frontend::WindowSystemType::Cocoa;
- window_info.render_surface = SDL_Metal_CreateView(render_window);
+ window_info.render_surface = SDL_Metal_GetLayer(SDL_Metal_CreateView(render_window));
} else if (void* android_window =
SDL_GetPointerProperty(window_props, SDL_PROP_WINDOW_ANDROID_WINDOW_POINTER,
nullptr);