Small fixup
This commit is contained in:
parent
4cd737abae
commit
b19e88a9f4
|
@ -618,10 +618,12 @@ bool GMainWindow::LoadROM(const QString& filename) {
|
||||||
render_window->InitRenderTarget();
|
render_window->InitRenderTarget();
|
||||||
render_window->MakeCurrent();
|
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()) {
|
if (!gladLoadGL()) {
|
||||||
QMessageBox::critical(this, tr("OpenGL 3.3 Unsupported"),
|
QMessageBox::critical(this, tr(below_gl33_title), tr(below_gl33_message));
|
||||||
tr("Your GPU may not support OpenGL 3.3, or you do not "
|
|
||||||
"have the latest graphics driver."));
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -685,16 +687,14 @@ bool GMainWindow::LoadROM(const QString& filename) {
|
||||||
|
|
||||||
case Core::System::ResultStatus::ErrorVideoCore_ErrorGenericDrivers:
|
case Core::System::ResultStatus::ErrorVideoCore_ErrorGenericDrivers:
|
||||||
QMessageBox::critical(
|
QMessageBox::critical(
|
||||||
this, tr("Video Core Error!"),
|
this, tr("Video Core Error"),
|
||||||
tr("An error occured in the video core. You are running default Windows drivers "
|
tr("You are running default Windows drivers "
|
||||||
"for your GPU. You need to install the "
|
"for your GPU. You need to install the "
|
||||||
"proper drivers for your graphics card from the manufacturer's website."));
|
"proper drivers for your graphics card from the manufacturer's website."));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Core::System::ResultStatus::ErrorVideoCore_ErrorBelowGL33:
|
case Core::System::ResultStatus::ErrorVideoCore_ErrorBelowGL33:
|
||||||
QMessageBox::critical(this, tr("OpenGL 3.3 Unsupported"),
|
QMessageBox::critical(this, tr(below_gl33_title), tr(below_gl33_message));
|
||||||
tr("Your GPU may not support OpenGL 3.3, or you do not "
|
|
||||||
"have the latest graphics driver."));
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue