obs-filters: Fix scroll filter offsets becoming non-finite
If the parent source of a scroll filter has a 0 width or 0 height, the scroll filter would do a division by zero on the size_i variable, which would then cause the offset variable to perpetually have a non-finite value, thus preventing the scroll filter from rendering properly after that due to the non-finite offset value being uploaded to the shader.
Showing
想要评论请 注册 或 登录