From c1948c16b071752407ac24c469da760ca71f11e3 Mon Sep 17 00:00:00 2001 From: jpark37 Date: Tue, 11 May 2021 03:08:17 -0700 Subject: [PATCH] libobs: Fix direct rendering test Pass test if the filter wants SRGB, and the source supports SRGB. --- libobs/obs-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/obs-source.c b/libobs/obs-source.c index d91d95e6f..5ab10067e 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -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,