diff options
author | fearlessTobi <thm.frey@gmail.com> | 2018-09-01 19:01:53 +0200 |
---|---|---|
committer | fearlessTobi <thm.frey@gmail.com> | 2018-09-01 19:01:53 +0200 |
commit | 0f453488e2e73a314b1286656fee4e407192f5fc (patch) | |
tree | c8674615e87897f3843c51faf6cc9c3ed9867d3d /src/yuzu/main.cpp | |
parent | c69dc5acf9faf3817337dfd5883fd3ef55a73326 (diff) |
citra_qt: Display the unsupported GL extensions in the popup
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index e11ba7854b..cfc48a416f 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -419,7 +419,7 @@ void GMainWindow::OnDisplayTitleBars(bool show) { } } -bool GMainWindow::SupportsRequiredGLExtensions() { +QStringList GMainWindow::GetUnsupportedGLExtensions() { QStringList unsupported_ext; if (!GLAD_GL_ARB_program_interface_query) @@ -446,7 +446,7 @@ bool GMainWindow::SupportsRequiredGLExtensions() { for (const QString& ext : unsupported_ext) LOG_CRITICAL(Frontend, "Unsupported GL extension: {}", ext.toStdString()); - return unsupported_ext.empty(); + return unsupported_ext; } bool GMainWindow::LoadROM(const QString& filename) { @@ -464,11 +464,13 @@ bool GMainWindow::LoadROM(const QString& filename) { return false; } - if (!SupportsRequiredGLExtensions()) { - QMessageBox::critical( - this, tr("Error while initializing OpenGL Core!"), - tr("Your GPU may not support one or more required OpenGL extensions. Please " - "ensure you have the latest graphics driver. See the log for more details.")); + QStringList unsupported_gl_extensions = GetUnsupportedGLExtensions(); + if (!unsupported_gl_extensions.empty()) { + QMessageBox::critical(this, tr("Error while initializing OpenGL Core!"), + tr("Your GPU may not support one or more required OpenGL" + "extensions. Please ensure you have the latest graphics " + "driver.<br><br>Unsupported extensions:<br>") + + unsupported_gl_extensions.join("<br>")); return false; } |