libobs: Fix filter dimension issue
The wrong function was being used to recurse through the filter chain in obs_source_process_filter, obs_source_get_[width/height] would get the post-effect dimensions rather than the pre-effect dimensions.
This commit is contained in:
parent
95e63992cb
commit
13046145f7
@ -1973,8 +1973,8 @@ void obs_source_process_filter(obs_source_t *filter, gs_effect_t *effect,
|
||||
parent = obs_filter_get_parent(filter);
|
||||
target_flags = target->info.output_flags;
|
||||
parent_flags = parent->info.output_flags;
|
||||
cx = obs_source_get_width(target);
|
||||
cy = obs_source_get_height(target);
|
||||
cx = get_base_width(target);
|
||||
cy = get_base_height(target);
|
||||
use_matrix = !!(target_flags & OBS_SOURCE_COLOR_MATRIX);
|
||||
expects_def = !(parent_flags & OBS_SOURCE_CUSTOM_DRAW);
|
||||
can_directly = allow_direct == OBS_ALLOW_DIRECT_RENDERING;
|
||||
|
Loading…
x
Reference in New Issue
Block a user