Make OpenGL ES only available on macOS if ANGLE is loaded

This commit is contained in:
Cacodemon345
2021-12-24 00:26:47 +06:00
parent 4002149d4d
commit eb84dc6ef4

View File

@@ -252,7 +252,7 @@ MainWindow::MainWindow(QWidget *parent) :
ui->actionChange_contrast_for_monochrome_display->setChecked(true);
}
#ifdef Q_OS_WINDOWS
#if defined Q_OS_WINDOWS || defined Q_OS_MACOS
/* Make the option visible only if ANGLE is loaded. */
ui->actionHardware_Renderer_OpenGL_ES->setVisible(QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGLES);
#endif