From 343fec8e9c986966ae4d1f3a847e9eb8fed89103 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 11 Oct 2024 22:13:30 -0500 Subject: [PATCH] fix(windows): fix logic to remember ddprobe already ran --- 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 d4731c0ec0b..c6167886925 100644 --- a/src/platform/windows/display_base.cpp +++ b/src/platform/windows/display_base.cpp @@ -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; }