Try fix probing failed issue on some weird systems

This commit is contained in:
Yukino Song
2024-09-21 20:28:27 +08:00
parent 50087cd7c8
commit 79c9c23232
2 changed files with 13 additions and 2 deletions

View File

@@ -419,11 +419,13 @@ namespace platf::dxgi {
// Try probing with different GPU preferences and verify_frame_capture flag
if (validate_and_test_gpu_preference(display_name, true)) {
set_gpu_preference = true;
return true;
}
// If no valid configuration was found, try again with verify_frame_capture == false
if (validate_and_test_gpu_preference(display_name, false)) {
set_gpu_preference = true;
return true;
}