Get rid of QOpenGLWidget in main_window_mac

ui_window_mac has logic depending on Qt version to use Metal when possible, this will conflict once Qt is updated to 6.4+
This commit is contained in:
Ilya Fedin 2023-06-17 15:47:22 +04:00 committed by John Preston
parent 12eed5f433
commit 786d8dd22e

View File

@ -238,7 +238,6 @@ MainWindow::MainWindow(not_null<Window::Controller*> controller)
: Window::MainWindow(controller)
, _private(std::make_unique<Private>(this))
, psMainMenu(this) {
auto forceOpenGL = std::make_unique<QOpenGLWidget>(this);
_hideAfterFullScreenTimer.setCallback([this] { hideAndDeactivate(); });
}