summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-07-20 21:55:48 +0200
committerGitHub <noreply@github.com>2021-07-20 21:55:48 +0200
commit263a201dae9ecb872be3b632d2b9f3a064aff5c6 (patch)
tree916aeff6d2d5552c12be3feb96266e6d2aa8aab7
parentMerge pull request #6685 from ReinUsesLisp/radeonsi-client (diff)
parentbootmanager: Create a dummy render widget (diff)
downloadyuzu-263a201dae9ecb872be3b632d2b9f3a064aff5c6.tar
yuzu-263a201dae9ecb872be3b632d2b9f3a064aff5c6.tar.gz
yuzu-263a201dae9ecb872be3b632d2b9f3a064aff5c6.tar.bz2
yuzu-263a201dae9ecb872be3b632d2b9f3a064aff5c6.tar.lz
yuzu-263a201dae9ecb872be3b632d2b9f3a064aff5c6.tar.xz
yuzu-263a201dae9ecb872be3b632d2b9f3a064aff5c6.tar.zst
yuzu-263a201dae9ecb872be3b632d2b9f3a064aff5c6.zip
-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
bool GRenderWindow::InitRenderTarget() {
ReleaseRenderTarget();
+ {
+ // Create a dummy render widget so that Qt
+ // places the render window at the correct position.
+ const RenderWidget dummy_widget{this};
+ }
+
first_frame = false;
switch (Settings::values.renderer_backend.GetValue()) {