aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu_cmd
diff options
context:
space:
mode:
authorgivethesourceplox <272928635+givethesourceplox@users.noreply.github.com>2026-10-30 09:54:55 -0300
committergivethesourceplox <272928635+givethesourceplox@users.noreply.github.com>2026-10-30 09:54:55 -0300
commit487d04f8edf641288c8023009600d5d306cad586 (patch)
treedf7741fe7afed0b065dd923a194e51b1c0ba4b28 /src/yuzu_cmd
parent6e7edd7462325ee18a0db6fdc29ff7698ac108cc (diff)
yuzu_cmd: give MoltenVK the view's CAMetalLayer
VkMetalSurfaceCreateInfoEXT needs the CAMetalLayer, not the NSView that SDL_Metal_CreateView returns. Assisted-by: Claude (Anthropic)
Diffstat (limited to 'src/yuzu_cmd')
-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);