瀏覽代碼

win-capture: Use normal blend equation for cursor

Not sure what the previous setup was trying to do. I guess we'll find
out if users complain.
jpark37 3 年之前
父節點
當前提交
d641ab12f7
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      plugins/win-capture/cursor-capture.c

+ 3 - 3
plugins/win-capture/cursor-capture.c

@@ -228,14 +228,14 @@ void cursor_draw(struct cursor_data *data, long x_offset, long y_offset,
 
 
 	if (data->visible && !!data->texture) {
 	if (data->visible && !!data->texture) {
 		gs_blend_state_push();
 		gs_blend_state_push();
-		gs_blend_function(GS_BLEND_SRCALPHA, GS_BLEND_INVSRCALPHA);
-		gs_enable_color(true, true, true, false);
+		gs_blend_function_separate(GS_BLEND_SRCALPHA,
+					   GS_BLEND_INVSRCALPHA, GS_BLEND_ONE,
+					   GS_BLEND_INVSRCALPHA);
 
 
 		gs_matrix_push();
 		gs_matrix_push();
 		obs_source_draw(data->texture, x_draw, y_draw, 0, 0, false);
 		obs_source_draw(data->texture, x_draw, y_draw, 0, 0, false);
 		gs_matrix_pop();
 		gs_matrix_pop();
 
 
-		gs_enable_color(true, true, true, true);
 		gs_blend_state_pop();
 		gs_blend_state_pop();
 	}
 	}
 }
 }