mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-09 23:09:59 +00:00
QT: Hide GLWidget immediately after showing.
With the loading screen merged, we don't want to actually show at this point, but it still needs to be shown to actually create the context. Turns out you can just show and hide it immediately and it'll work.
This commit is contained in:
parent
f2a2f818b6
commit
5f2d9f282a
1 changed files with 2 additions and 0 deletions
|
@ -393,6 +393,8 @@ void GRenderWindow::InitRenderTarget() {
|
||||||
BackupGeometry();
|
BackupGeometry();
|
||||||
// show causes the window to actually be created and the gl context as well
|
// show causes the window to actually be created and the gl context as well
|
||||||
show();
|
show();
|
||||||
|
// but we don't want the widget to be shown yet, so immediately hide it
|
||||||
|
hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GRenderWindow::CaptureScreenshot(u16 res_scale, const QString& screenshot_path) {
|
void GRenderWindow::CaptureScreenshot(u16 res_scale, const QString& screenshot_path) {
|
||||||
|
|
Loading…
Reference in a new issue