Browse Source

libobs: Restrict direct filtering to SRGB match

Fixes issue where color-correction filter v1 changes from v26 to v27.
jpark37 4 years ago
parent
commit
35c07bb7e6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libobs/obs-source.c

+ 2 - 2
libobs/obs-source.c

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