mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-10-25 11:09:04 +01:00
sdl_window: Skip camera initialization on macOS (#4812)
This commit is contained in:
1 parent
4c3d578cc9
commit
e080fdbd6e
1 file changed
+4
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user