浏览代码

libobs: Remove unnecessary branch

Fast path for output texture shouldn't care what the effect is.
jpark37 3 年之前
父节点
当前提交
1ddabc5c7c
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      libobs/obs-video.c

+ 1 - 2
libobs/obs-video.c

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