瀏覽代碼

image-source: Do not change blend state

The blend state does not need to (and should not) be changed.  This
fixes an issue where if filters are applied to an image source, the
image source will paint incorrectly.
jp9000 8 年之前
父節點
當前提交
922e1d23f9
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      plugins/image-source/image-source.c

+ 0 - 1
plugins/image-source/image-source.c

@@ -151,7 +151,6 @@ static void image_source_render(void *data, gs_effect_t *effect)
 	if (!context->image.texture)
 		return;
 
-	gs_reset_blend_state();
 	gs_effect_set_texture(gs_effect_get_param_by_name(effect, "image"),
 			context->image.texture);
 	gs_draw_sprite(context->image.texture, 0,