Skip to content

Commit

Permalink
libobs: Restrict direct filtering to SRGB match
Browse files Browse the repository at this point in the history
Fixes issue where color-correction filter v1 changes from v26 to v27.
  • Loading branch information
jpark37 authored and jp9000 committed May 31, 2021
1 parent 457adce commit 35c07bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libobs/obs-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -3683,8 +3683,8 @@ static inline bool can_bypass(obs_source_t *target, obs_source_t *parent,
(allow_direct == OBS_ALLOW_DIRECT_RENDERING) &&
((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));
((filter_flags & OBS_SOURCE_SRGB) ==
(parent_flags & OBS_SOURCE_SRGB));
}

bool obs_source_process_filter_begin(obs_source_t *filter,
Expand Down

0 comments on commit 35c07bb

Please sign in to comment.