浏览代码

Merge pull request #1925 from jpark37/disable-source-convert-blend

libobs: Disable blending when converting sources
Jim 6 年之前
父节点
当前提交
6a4f1d0c1d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      libobs/obs-source.c

+ 4 - 0
libobs/obs-source.c

@@ -1620,6 +1620,8 @@ static bool update_async_texrender(struct obs_source *source,
 		return false;
 	}
 
+	gs_enable_blending(false);
+
 	gs_technique_begin(tech);
 	gs_technique_begin_pass(tech, 0);
 
@@ -1657,6 +1659,8 @@ static bool update_async_texrender(struct obs_source *source,
 	gs_technique_end_pass(tech);
 	gs_technique_end(tech);
 
+	gs_enable_blending(true);
+
 	gs_texrender_end(texrender);
 
 	GS_DEBUG_MARKER_END();