From 5f2d9f282aa31c9658f044e7095d3ecbe12105eb Mon Sep 17 00:00:00 2001
From: James Rowe <jroweboy@gmail.com>
Date: Mon, 21 Jan 2019 16:21:44 -0700
Subject: [PATCH] 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.
---
 src/yuzu/bootmanager.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index 087ee8f93b..ea55e68bab 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -393,6 +393,8 @@ void GRenderWindow::InitRenderTarget() {
     BackupGeometry();
     // show causes the window to actually be created and the gl context as well
     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) {