mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoBackends: Make it possible for PrepareWindow to change the surface
Again, needed for MoltenVK.
This commit is contained in:
@ -18,6 +18,6 @@ public:
|
||||
std::string GetName() const override { return "Vulkan"; }
|
||||
std::string GetDisplayName() const override { return _trans("Vulkan"); }
|
||||
void InitBackendInfo() override;
|
||||
void PrepareWindow(const WindowSystemInfo& wsi) override;
|
||||
void PrepareWindow(WindowSystemInfo& wsi) override;
|
||||
};
|
||||
} // namespace Vulkan
|
||||
|
@ -304,7 +304,7 @@ static bool IsRunningOnMojaveOrHigher()
|
||||
}
|
||||
#endif
|
||||
|
||||
void VideoBackend::PrepareWindow(const WindowSystemInfo& wsi)
|
||||
void VideoBackend::PrepareWindow(WindowSystemInfo& wsi)
|
||||
{
|
||||
#if defined(VK_USE_PLATFORM_MACOS_MVK)
|
||||
// This is kinda messy, but it avoids having to write Objective C++ just to create a metal layer.
|
||||
|
Reference in New Issue
Block a user