From d204a5654c7a101bd5e61093e4ec26a27a931117 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 13 Oct 2024 18:04:52 -0500 Subject: [PATCH] fix(display): fix logic to remember ddprobe already ran (#3293) --- src/platform/windows/display_base.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/windows/display_base.cpp b/src/platform/windows/display_base.cpp index 46ae4cb47f7..2b1b749295d 100644 --- a/src/platform/windows/display_base.cpp +++ b/src/platform/windows/display_base.cpp @@ -439,11 +439,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; }