Skip to content
Snippets Groups Projects
Commit 5f2d9f28 authored by James Rowe's avatar James Rowe
Browse files

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.
parent f2a2f818
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment