From b19e88a9f41f94fe6d054a4f50ff219a1aa6ede7 Mon Sep 17 00:00:00 2001 From: fearlessTobi Date: Sun, 19 Aug 2018 16:46:10 +0200 Subject: [PATCH] Small fixup --- src/citra_qt/main.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 142a12948..0ba839611 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -618,10 +618,12 @@ bool GMainWindow::LoadROM(const QString& filename) { render_window->InitRenderTarget(); render_window->MakeCurrent(); + const char* below_gl33_title = "OpenGL 3.3 Unsupported"; + const char* below_gl33_message = "Your GPU may not support OpenGL 3.3, or you do not " + "have the latest graphics driver."; + if (!gladLoadGL()) { - QMessageBox::critical(this, tr("OpenGL 3.3 Unsupported"), - tr("Your GPU may not support OpenGL 3.3, or you do not " - "have the latest graphics driver.")); + QMessageBox::critical(this, tr(below_gl33_title), tr(below_gl33_message)); return false; } @@ -685,16 +687,14 @@ bool GMainWindow::LoadROM(const QString& filename) { case Core::System::ResultStatus::ErrorVideoCore_ErrorGenericDrivers: QMessageBox::critical( - this, tr("Video Core Error!"), - tr("An error occured in the video core. You are running default Windows drivers " + this, tr("Video Core Error"), + tr("You are running default Windows drivers " "for your GPU. You need to install the " "proper drivers for your graphics card from the manufacturer's website.")); break; case Core::System::ResultStatus::ErrorVideoCore_ErrorBelowGL33: - QMessageBox::critical(this, tr("OpenGL 3.3 Unsupported"), - tr("Your GPU may not support OpenGL 3.3, or you do not " - "have the latest graphics driver.")); + QMessageBox::critical(this, tr(below_gl33_title), tr(below_gl33_message)); break; default: