summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Morph2021-07-16 13:07:37 -0400
committerGravatar Morph2021-07-20 01:40:18 -0400
commit747a33a41e11330b18cf3ea43f556d3a2e9ded11 (patch)
tree4ce200b1620d921eb528d6f785aa3617c9c47f95
parentfile_sys: Support load game collection (#6582) (diff)
downloadyuzu-747a33a41e11330b18cf3ea43f556d3a2e9ded11.tar.gz
yuzu-747a33a41e11330b18cf3ea43f556d3a2e9ded11.tar.xz
yuzu-747a33a41e11330b18cf3ea43f556d3a2e9ded11.zip
bootmanager: Create a dummy render widget
This ensures that Qt positions the render window at the correct position on initializing the respective render backends.
-rw-r--r--src/yuzu/bootmanager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index bfae73b60..d72ca5acc 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -567,6 +567,12 @@ std::unique_ptr<Core::Frontend::GraphicsContext> GRenderWindow::CreateSharedCont
567bool GRenderWindow::InitRenderTarget() { 567bool GRenderWindow::InitRenderTarget() {
568 ReleaseRenderTarget(); 568 ReleaseRenderTarget();
569 569
570 {
571 // Create a dummy render widget so that Qt
572 // places the render window at the correct position.
573 const RenderWidget dummy_widget{this};
574 }
575
570 first_frame = false; 576 first_frame = false;
571 577
572 switch (Settings::values.renderer_backend.GetValue()) { 578 switch (Settings::values.renderer_backend.GetValue()) {