libobs: Fix direct rendering test

Pass test if the filter wants SRGB, and the source supports SRGB.
This commit is contained in:
jpark37 2021-05-11 03:08:17 -07:00
parent cec8e24630
commit c1948c16b0

View File

@ -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,