obs-filters: Skip scroll filter if parent has no cx/cy
There's no point in the filter continuing its processing if there's nothing to draw.
This commit is contained in:
parent
a23d8e3f2c
commit
5349bbf633
@ -172,6 +172,8 @@ static void scroll_filter_render(void *data, gs_effect_t *effect)
|
||||
1.0f / (float)base_cy);
|
||||
} else {
|
||||
vec2_zero(&filter->size_i);
|
||||
obs_source_skip_video_filter(filter->context);
|
||||
return;
|
||||
}
|
||||
|
||||
vec2_set(&mul_val,
|
||||
|
Loading…
x
Reference in New Issue
Block a user