2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #6658 from Morph1984/render-window-fix

bootmanager: Create a dummy render widget
This commit is contained in:
bunnei 2021-07-20 15:55:48 -04:00 committed by GitHub
commit 263a201dae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()) {