libobs: Remove unnecessary branch

Fast path for output texture shouldn't care what the effect is.
This commit is contained in:
jpark37 2022-09-05 16:48:18 -07:00 committed by Jim
parent a45cb71f6e
commit 1ddabc5c7c

View file

@ -233,8 +233,7 @@ render_output_texture(struct obs_core_video_mix *mix)
if (video_output_get_format(mix->video) == VIDEO_FORMAT_RGBA) {
tech = gs_effect_get_technique(effect, "DrawAlphaDivide");
} else {
if ((effect == video->default_effect) &&
(width == video->base_width) &&
if ((width == video->base_width) &&
(height == video->base_height))
return texture;