From e080fdbd6ed74c55636aa2dbf0b0b4add154dc02 Mon Sep 17 00:00:00 2001 From: squidbus <175574877+squidbus@users.noreply.github.com> Date: Fri, 7 Aug 2026 09:51:56 -0700 Subject: [PATCH] sdl_window: Skip camera initialization on macOS (#4812) --- src/sdl_window.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sdl_window.cpp b/src/sdl_window.cpp index 9c6124a55..b2e07dcdf 100644 --- a/src/sdl_window.cpp +++ b/src/sdl_window.cpp @@ -103,9 +103,13 @@ WindowSDL::WindowSDL(s32 width_, s32 height_, Input::GameControllers* controller if (!SDL_Init(SDL_INIT_VIDEO)) { UNREACHABLE_MSG("Failed to initialize SDL video subsystem: {}", SDL_GetError()); } + // On macOS, the future Intel compatibility environment does not include camera frameworks. + // Just skip initializing it entirely, no point in splitting old vs new OS versions here. +#ifndef __APPLE__ if (!SDL_Init(SDL_INIT_CAMERA)) { LOG_ERROR(Input, "Failed to initialize SDL camera subsystem: {}", SDL_GetError()); } +#endif SDL_InitSubSystem(SDL_INIT_AUDIO); SDL_PropertiesID props = SDL_CreateProperties();