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:
jp9000 2016-04-23 14:38:32 -07:00
parent a23d8e3f2c
commit 5349bbf633

View File

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