瀏覽代碼

obs-text: Do not reset blend state

Similar to the parent commit, do not reset the blend state if the source
is not marked as a custom drawn source.  Filters applied won't have the
correct blend state and the alpha edges of the text will be partially
black.
jp9000 8 年之前
父節點
當前提交
c4580ac6ba
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      plugins/obs-text/gdiplus/obs-text.cpp

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

@@ -787,7 +787,6 @@ inline void TextSource::Render(gs_effect_t *effect)
 	if (!tex)
 		return;
 
-	gs_reset_blend_state();
 	gs_effect_set_texture(gs_effect_get_param_by_name(effect, "image"), tex);
 	gs_draw_sprite(tex, 0, cx, cy);
 }