From 5f282e31c01b1882650831ef97f27039f656928c Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Mon, 13 Dec 2021 18:04:35 +0200 Subject: [PATCH] Disable OpenGLES renderer menu option on windows As the OpenGLES doesn't (yet) work on Windows, disable the option. --- src/qt/qt_mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index 8fd0e20dd..ab89c8650 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -221,6 +221,11 @@ MainWindow::MainWindow(QWidget *parent) : ui->actionChange_contrast_for_monochrome_display->setChecked(true); } +#ifdef Q_OS_WINDOWS + /* qt opengles doesn't work (yet?) so hide the menu option */ + ui->actionHardware_Renderer_OpenGL_ES->setVisible(false); +#endif + setFocusPolicy(Qt::StrongFocus); ui->gles->setFocusPolicy(Qt::NoFocus); ui->sw->setFocusPolicy(Qt::NoFocus);