summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2021-07-16 03:02:38 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2021-07-16 21:43:12 +0200
commit0e6ba0cd0db6f338696ffba9180e15ea4a092323 (patch)
treed4d876998896eef6097969b1d7f118638bf7e889 /src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp
parentemu_window_sdl2_vk: Use the generated SDL config (diff)
downloadyuzu-0e6ba0cd0db6f338696ffba9180e15ea4a092323.tar
yuzu-0e6ba0cd0db6f338696ffba9180e15ea4a092323.tar.gz
yuzu-0e6ba0cd0db6f338696ffba9180e15ea4a092323.tar.bz2
yuzu-0e6ba0cd0db6f338696ffba9180e15ea4a092323.tar.lz
yuzu-0e6ba0cd0db6f338696ffba9180e15ea4a092323.tar.xz
yuzu-0e6ba0cd0db6f338696ffba9180e15ea4a092323.tar.zst
yuzu-0e6ba0cd0db6f338696ffba9180e15ea4a092323.zip
Diffstat (limited to 'src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp
index b6049b032..7c870aea1 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp
@@ -57,6 +57,11 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(InputCommon::InputSubsystem* input_subsyste
window_info.type = Core::Frontend::WindowSystemType::Windows;
window_info.render_surface = reinterpret_cast<void*>(wm.info.win.window);
break;
+#else
+ case SDL_SYSWM_TYPE::SDL_SYSWM_WINDOWS:
+ LOG_CRITICAL(Frontend, "Window manager subsystem Windows not compiled");
+ std::exit(EXIT_FAILURE);
+ break;
#endif
#ifdef SDL_VIDEO_DRIVER_X11
case SDL_SYSWM_TYPE::SDL_SYSWM_X11:
@@ -64,6 +69,11 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(InputCommon::InputSubsystem* input_subsyste
window_info.display_connection = wm.info.x11.display;
window_info.render_surface = reinterpret_cast<void*>(wm.info.x11.window);
break;
+#else
+ case SDL_SYSWM_TYPE::SDL_SYSWM_X11:
+ LOG_CRITICAL(Frontend, "Window manager subsystem X11 not compiled");
+ std::exit(EXIT_FAILURE);
+ break;
#endif
#ifdef SDL_VIDEO_DRIVER_WAYLAND
case SDL_SYSWM_TYPE::SDL_SYSWM_WAYLAND:
@@ -71,6 +81,11 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(InputCommon::InputSubsystem* input_subsyste
window_info.display_connection = wm.info.wl.display;
window_info.render_surface = wm.info.wl.surface;
break;
+#else
+ case SDL_SYSWM_TYPE::SDL_SYSWM_WAYLAND:
+ LOG_CRITICAL(Frontend, "Window manager subsystem Wayland not compiled");
+ std::exit(EXIT_FAILURE);
+ break;
#endif
default:
LOG_CRITICAL(Frontend, "Window manager subsystem not implemented");