Introduce dummy context

This commit is contained in:
H27CK
2020-04-22 07:24:13 +02:00
parent aee2057599
commit b5e570a1a2
2 changed files with 3 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(Core::System& system, bool fullscreen)
EmuWindow_SDL2_VK::~EmuWindow_SDL2_VK() = default;
std::unique_ptr<Core::Frontend::GraphicsContext> EmuWindow_SDL2_VK::CreateSharedContext() const {
return nullptr;
return std::make_unique<DummyContext>();
}
void EmuWindow_SDL2_VK::Present() {

View File

@@ -22,3 +22,5 @@ public:
std::unique_ptr<Core::Frontend::GraphicsContext> CreateSharedContext() const override;
};
class DummyContext : public Core::Frontend::GraphicsContext {};