qt: Fix compiling with Vulkan support unavailable

This commit is contained in:
Cacodemon345
2022-04-25 16:09:37 +06:00
parent 9c070dc192
commit 6f968e3fd7
6 changed files with 16 additions and 0 deletions

View File

@@ -280,6 +280,11 @@ MainWindow::MainWindow(QWidget *parent) :
ui->actionOpenGL_3_0_Core->setVisible(false);
}
#if !QT_CONFIG(vulkan)
if (vid_api == 4) vid_api = 0;
ui->actionVulkan->setVisible(false);
#endif
QActionGroup* actGroup = nullptr;
actGroup = new QActionGroup(this);