Use default Graphics API for all platforms

This commit is contained in:
Agel committed 2026-10-29 12:28:05 +01:00
1 parent d9a0991f9b
commit 306d4cac5c
2 files changed
-8

No files matched your search

-1
View File
@@ -52,7 +52,6 @@ Full target format list:
### Dependencies
- Qt 6.10+ components: `Core`, `Gui`, `Qml`, `Quick`, `Widgets`, `Concurrent`, `Svg`, `QuickControls2`, `Test`, `Xml`, `Network`, optional `DBus`.
- Third-party packages: `minizip`, `libarchive`, `iconv`.
- Graphics API: Vulkan (Windows, Linux), Metal (macOS) configured via `QQuickWindow::setGraphicsApi()`.
### Windows Build Environment
Qt 6.10.3 at `C:\msys64\opt\qt\6.10.3\mingw_64`. MinGW toolchain at `C:\msys64\mingw64\bin\`:
-7
View File
@@ -72,13 +72,6 @@ int main(int argc, char *argv[])
qInstallMessageHandler(myMessageHandler);
QSettings::setDefaultFormat(QSettings::IniFormat);
// Select graphics API per platform
#if defined(Q_OS_MACOS)
QQuickWindow::setGraphicsApi(QSGRendererInterface::Metal);
#else
QQuickWindow::setGraphicsApi(QSGRendererInterface::Vulkan);
#endif
QApplication app(argc, argv);
QApplication::setApplicationName(QStringLiteral("Asteria"));
QApplication::setOrganizationName(QStringLiteral("Asteria"));