Common: Add a render_window field to WindowSystemInfo

We need this because we need to pass the layer to MoltenVK, not
the view handle. But the input subsystem still needs the window.
This commit is contained in:
Stenzek 2020-03-11 23:09:28 +10:00
parent bb7623e3ba
commit 86db015c23
8 changed files with 24 additions and 10 deletions

View file

@ -680,7 +680,7 @@ static void Run(JNIEnv* env, const std::vector<std::string>& paths,
s_have_wm_user_stop = false;
std::unique_ptr<BootParameters> boot = BootParameters::GenerateFromFile(paths, savestate_path);
boot->delete_savestate = delete_savestate;
WindowSystemInfo wsi(WindowSystemType::Android, nullptr, s_surf);
WindowSystemInfo wsi(WindowSystemType::Android, nullptr, s_surf, s_surf);
wsi.render_surface_scale = GetRenderSurfaceScale(env);
if (BootManager::BootCore(std::move(boot), wsi))
{