sdl_window: Skip camera initialization on macOS (#4812)

This commit is contained in:
squidbus authored and GitHub committed 2026-08-07 19:51:56 +03:00
1 parent 4c3d578cc9
commit e080fdbd6e
1 file changed
+4
+4
View File
@@ -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();