Switch Qt 6.4+ back to OpenGL on macOS

The flickering bug seem to be fixed with the sRGB hint
This commit is contained in:
Ilya Fedin 2023-11-02 00:04:25 +04:00 committed by John Preston
parent 23ce4f09df
commit 1ae65d2cba
2 changed files with 0 additions and 5 deletions

View file

@ -273,9 +273,7 @@ void WindowHelper::Private::enforceStyle() {
}
void WindowHelper::Private::initOpenGL() {
#if QT_VERSION < QT_VERSION_CHECK(6, 4, 0)
auto forceOpenGL = std::make_unique<QOpenGLWidget>(_owner->window());
#endif // Qt < 6.4.0
}
void WindowHelper::Private::resolveWeakPointers() {

View file

@ -29,9 +29,6 @@ public:
if (const auto config = q->rhiConfig()) {
return *config;
}
if (::Platform::IsMac10_14OrGreater()) {
return { QPlatformBackingStoreRhiConfig::Metal };
}
// We can't specify the widget here as q_evaluateRhiConfig is called
// in QWidgetWindow constructor, while windowHandle is set right after
// the constructor is completed