mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-08 07:20:02 +00:00
Merge pull request #3758 from H27CK/vk-cmd
Introduce dummy context for yuzu-cmd VK support
This commit is contained in:
commit
5ed13304e1
2 changed files with 4 additions and 1 deletions
|
@ -29,6 +29,7 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(Core::System& system, bool fullscreen)
|
||||||
SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI);
|
SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI);
|
||||||
|
|
||||||
SDL_SysWMinfo wm;
|
SDL_SysWMinfo wm;
|
||||||
|
SDL_VERSION(&wm.version);
|
||||||
if (SDL_GetWindowWMInfo(render_window, &wm) == SDL_FALSE) {
|
if (SDL_GetWindowWMInfo(render_window, &wm) == SDL_FALSE) {
|
||||||
LOG_CRITICAL(Frontend, "Failed to get information from the window manager");
|
LOG_CRITICAL(Frontend, "Failed to get information from the window manager");
|
||||||
std::exit(EXIT_FAILURE);
|
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;
|
EmuWindow_SDL2_VK::~EmuWindow_SDL2_VK() = default;
|
||||||
|
|
||||||
std::unique_ptr<Core::Frontend::GraphicsContext> EmuWindow_SDL2_VK::CreateSharedContext() const {
|
std::unique_ptr<Core::Frontend::GraphicsContext> EmuWindow_SDL2_VK::CreateSharedContext() const {
|
||||||
return nullptr;
|
return std::make_unique<DummyContext>()
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmuWindow_SDL2_VK::Present() {
|
void EmuWindow_SDL2_VK::Present() {
|
||||||
|
|
|
@ -22,3 +22,5 @@ public:
|
||||||
|
|
||||||
std::unique_ptr<Core::Frontend::GraphicsContext> CreateSharedContext() const override;
|
std::unique_ptr<Core::Frontend::GraphicsContext> CreateSharedContext() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class DummyContext : public Core::Frontend::GraphicsContext {};
|
||||||
|
|
Loading…
Reference in a new issue