From f7d3ba7b1b936cd2ead45ee571640bf13b666bdf Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Fri, 14 Jul 2023 15:06:59 -0400 Subject: [PATCH] libobs: Check if adapter can safely fast clear --- libobs/obs-display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libobs/obs-display.c b/libobs/obs-display.c index 688e5f1dc..291000fd8 100644 --- a/libobs/obs-display.c +++ b/libobs/obs-display.c @@ -27,7 +27,8 @@ bool obs_display_init(struct obs_display *display, #if defined(_WIN32) /* Conservative test for NVIDIA flickering in multi-GPU setups */ - display->use_clear_workaround = gs_get_adapter_count() > 1; + display->use_clear_workaround = gs_get_adapter_count() > 1 && + !gs_can_adapter_fast_clear(); #elif defined(__APPLE__) /* Apple Silicon GL driver doesn't seem to track SRGB clears correctly */ display->use_clear_workaround = true;