qt: Disable OpenGL 3.0 renderer for macOS.

Until it's figured out, macOS has dummy implementation to keep it
building.
This commit is contained in:
ts-korhonen
2022-02-27 21:57:14 +02:00
parent 4ec8e80042
commit d3b00ff27b
4 changed files with 63 additions and 8 deletions

View File

@@ -231,6 +231,9 @@ MainWindow::MainWindow(QWidget *parent) :
ui->actionHardware_Renderer_OpenGL_ES->setVisible(QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGLES);
if (QOpenGLContext::openGLModuleType() != QOpenGLContext::LibGLES && vid_api == 2) vid_api = 1;
#endif
#ifdef Q_OS_MACOS
ui->actionOpenGL_3_0_Core->setVisible(false);
#endif
if (QApplication::platformName().contains("eglfs") && vid_api >= 1) {
fprintf(stderr, "OpenGL renderers are unsupported on EGLFS.\n");