mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-18 21:38:29 -04:00
libobs: Fix direct rendering test
Pass test if the filter wants SRGB, and the source supports SRGB.
This commit is contained in:
@@ -3684,7 +3684,7 @@ static inline bool can_bypass(obs_source_t *target, obs_source_t *parent,
|
||||
((parent_flags & OBS_SOURCE_CUSTOM_DRAW) == 0) &&
|
||||
((parent_flags & OBS_SOURCE_ASYNC) == 0) &&
|
||||
(((filter_flags & OBS_SOURCE_SRGB) == 0) ||
|
||||
((parent_flags & OBS_SOURCE_SRGB) == 0));
|
||||
((parent_flags & OBS_SOURCE_SRGB) != 0));
|
||||
}
|
||||
|
||||
bool obs_source_process_filter_begin(obs_source_t *filter,
|
||||
|
||||
Reference in New Issue
Block a user