Qt: Display a slightly more helpful error on display create failure

This commit is contained in:
Stenzek 2023-03-01 01:34:18 +10:00 committed by refractionpcsx2
parent b484f7aef0
commit e91f9925f8

View File

@ -2154,7 +2154,10 @@ DisplayWidget* MainWindow::createDisplay(bool fullscreen, bool render_to_main)
if (!g_host_display->CreateDevice(wi.value(), Host::GetEffectiveVSyncMode()))
{
QMessageBox::critical(this, tr("Error"), tr("Failed to create host display device context."));
QMessageBox::critical(this, tr("Error"),
tr("Failed to create host display device. This may be due to your GPU not supporting the chosen renderer (%1), or because your "
"graphics drivers need to be updated.")
.arg(QString::fromUtf8(Pcsx2Config::GSOptions::GetRendererName(EmuConfig.GS.Renderer))));
destroyDisplayWidget(true);
return nullptr;
}