Skip to content

Commit

Permalink
Allow testing Vulkan on Android by defining SYNCTHINGTRAY_FORCE_VULKAN
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Jan 7, 2025
1 parent 64f9a6b commit 4cd013d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tray/application/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ static int runApplication(int argc, const char *const *argv)

#ifdef GUI_QTQUICK
if (quickGuiArg.isPresent()) {
#ifdef SYNCTHINGTRAY_FORCE_VULKAN
// force Vulkan RHI backend to test it on Android or other platforms where setting an env variable is not so easy
qputenv("QSG_RHI_BACKEND", "vulkan");
qputenv("QSG_INFO", "1");
#endif
#ifdef SYNCTHINGTRAY_HAS_WEBVIEW
QtWebView::initialize();
#endif
Expand Down

0 comments on commit 4cd013d

Please sign in to comment.