Skip to content

Commit 316f9db

Browse files
Fixes blending mode issue. (#37)
1 parent 4c5dfd3 commit 316f9db

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

obs-shaderfilter.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,9 +1512,6 @@ static void render_shader(struct shader_filter_data *filter)
15121512

15131513
filter->output_texrender =
15141514
create_or_reset_texrender(filter->output_texrender);
1515-
gs_blend_state_push();
1516-
gs_blend_function_separate(GS_BLEND_SRCALPHA, GS_BLEND_INVSRCALPHA,
1517-
GS_BLEND_ONE, GS_BLEND_INVSRCALPHA);
15181515

15191516
if (filter->param_image) {
15201517
gs_effect_set_texture(filter->param_image, texture);
@@ -1525,6 +1522,7 @@ static void render_shader(struct shader_filter_data *filter)
15251522
gs_reset_blend_state();
15261523
gs_enable_blending(false);
15271524
gs_blend_function(GS_BLEND_ONE, GS_BLEND_ZERO);
1525+
15281526
if (gs_texrender_begin(filter->output_texrender, filter->total_width,
15291527
filter->total_height)) {
15301528
gs_ortho(0.0f, (float)filter->total_width, 0.0f,

0 commit comments

Comments
 (0)