浏览代码

obs-text: Use custom draw flag

Fixes filters while preserving premult alpha
Colin Edwards 6 年之前
父节点
当前提交
33e4de5be6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/obs-text/gdiplus/obs-text.cpp

+ 1 - 1
plugins/obs-text/gdiplus/obs-text.cpp

@@ -969,7 +969,7 @@ bool obs_module_load(void)
 	obs_source_info si = {};
 	si.id = "text_gdiplus";
 	si.type = OBS_SOURCE_TYPE_INPUT;
-	si.output_flags = OBS_SOURCE_VIDEO;
+	si.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW;
 	si.get_properties = get_properties;
 
 	si.get_name = [] (void*)