core: Update GL result enum

Co-authored-by: SachinVin <26602104+SachinVin@users.noreply.github.com>
This commit is contained in:
GPUCode 2022-08-23 19:54:43 +03:00 committed by emufan4568
parent 13f38e0be5
commit 48d5ec5c00
3 changed files with 6 additions and 6 deletions

View File

@ -921,7 +921,7 @@ bool GMainWindow::LoadROM(const QString& filename) {
"have the latest graphics driver."); "have the latest graphics driver.");
if (!QOpenGLContext::globalShareContext()->versionFunctions<QOpenGLFunctions_4_3_Core>()) { if (!QOpenGLContext::globalShareContext()->versionFunctions<QOpenGLFunctions_4_3_Core>()) {
QMessageBox::critical(this, below_gl33_title, below_gl33_message); QMessageBox::critical(this, below_gl43_title, below_gl43_message);
return false; return false;
} }
@ -991,8 +991,8 @@ bool GMainWindow::LoadROM(const QString& filename) {
"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_ErrorBelowGL43:
QMessageBox::critical(this, below_gl33_title, below_gl33_message); QMessageBox::critical(this, below_gl43_title, below_gl43_message);
break; break;
default: default:

View File

@ -423,7 +423,7 @@ System::ResultStatus System::Init(Frontend::EmuWindow& emu_window, u32 system_mo
case VideoCore::ResultStatus::ErrorGenericDrivers: case VideoCore::ResultStatus::ErrorGenericDrivers:
return ResultStatus::ErrorVideoCore_ErrorGenericDrivers; return ResultStatus::ErrorVideoCore_ErrorGenericDrivers;
case VideoCore::ResultStatus::ErrorBelowGL43: case VideoCore::ResultStatus::ErrorBelowGL43:
return ResultStatus::ErrorVideoCore_ErrorBelowGL33; return ResultStatus::ErrorVideoCore_ErrorBelowGL43;
default: default:
return ResultStatus::ErrorVideoCore; return ResultStatus::ErrorVideoCore;
} }

View File

@ -87,8 +87,8 @@ public:
ErrorVideoCore, ///< Error in the video core ErrorVideoCore, ///< Error in the video core
ErrorVideoCore_ErrorGenericDrivers, ///< Error in the video core due to the user having ErrorVideoCore_ErrorGenericDrivers, ///< Error in the video core due to the user having
/// generic drivers installed /// generic drivers installed
ErrorVideoCore_ErrorBelowGL33, ///< Error in the video core due to the user not having ErrorVideoCore_ErrorBelowGL43, ///< Error in the video core due to the user not having
/// OpenGL 3.3 or higher /// OpenGL 4.3 or higher
ErrorSavestate, ///< Error saving or loading ErrorSavestate, ///< Error saving or loading
ShutdownRequested, ///< Emulated program requested a system shutdown ShutdownRequested, ///< Emulated program requested a system shutdown
ErrorUnknown ///< Any other error ErrorUnknown ///< Any other error