Browse Source

bootmanager: Create a dummy render widget

This ensures that Qt positions the render window at the correct position on initializing the respective render backends.
nce_cpp
Morph 5 years ago
parent
commit
13e270c3f5
  1. 6
      src/yuzu/bootmanager.cpp

6
src/yuzu/bootmanager.cpp

@ -567,6 +567,12 @@ std::unique_ptr<Core::Frontend::GraphicsContext> GRenderWindow::CreateSharedCont
bool GRenderWindow::InitRenderTarget() { bool GRenderWindow::InitRenderTarget() {
ReleaseRenderTarget(); 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; first_frame = false;
switch (Settings::values.renderer_backend.GetValue()) { switch (Settings::values.renderer_backend.GetValue()) {

Loading…
Cancel
Save