mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-06-30 08:33:32 +00:00
libobs: Check if adapter can safely fast clear
This commit is contained in:
parent
e5d5df879c
commit
f7d3ba7b1b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue