Fix build problems on Linux

This commit is contained in:
Andreas Nilsson
2025-05-31 19:11:26 +02:00
parent 1e6c8ff4cc
commit 246994dabe
5 changed files with 22 additions and 9 deletions

View File

@@ -56,12 +56,13 @@ namespace video {
// }
if (devices.empty()) {
#ifdef _WIN32
// We'll create a temporary virtual display for probing anyways.
if (proc::vDisplayDriverStatus == VDISPLAY::DRIVER_STATUS::OK) {
return false;
} else {
return true;
}
#endif
return true;
}
// Since Windows 11 24H2, it is possible that there will be no active devices present