From c883cd103e1d6145e135e5e65ef66b8028ee99cb Mon Sep 17 00:00:00 2001 From: H27CK <9727727+H27CK@users.noreply.github.com> Date: Wed, 22 Apr 2020 07:47:21 +0200 Subject: [PATCH] Init SDL info structure and add dummy context --- src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp | 3 ++- src/yuzu_cmd/emu_window/emu_window_sdl2_vk.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 f2990910e1..5149fa8671 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp @@ -29,6 +29,7 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(Core::System& system, bool fullscreen) SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); SDL_SysWMinfo wm; + SDL_VERSION(&wm.version); if (SDL_GetWindowWMInfo(render_window, &wm) == SDL_FALSE) { LOG_CRITICAL(Frontend, "Failed to get information from the window manager"); std::exit(EXIT_FAILURE); @@ -70,7 +71,7 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(Core::System& system, bool fullscreen) EmuWindow_SDL2_VK::~EmuWindow_SDL2_VK() = default; std::unique_ptr EmuWindow_SDL2_VK::CreateSharedContext() const { - return nullptr; + return std::make_unique() } void EmuWindow_SDL2_VK::Present() { diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.h b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.h index b8021ebeaa..77a6ca72b6 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.h +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.h @@ -22,3 +22,5 @@ public: std::unique_ptr CreateSharedContext() const override; }; + +class DummyContext : public Core::Frontend::GraphicsContext {};