Browse Source

libobs: Check if adapter can safely fast clear

Ryan Foster 2 years ago
parent
commit
f7d3ba7b1b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      libobs/obs-display.c

+ 2 - 1
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;