libobs: Fix direct rendering test
Pass test if the filter wants SRGB, and the source supports SRGB.
This commit is contained in:
parent
cec8e24630
commit
c1948c16b0
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user