1
0
Эх сурвалжийг харах

libobs: Check if adapter can safely fast clear

Ryan Foster 2 жил өмнө
parent
commit
f7d3ba7b1b
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  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;