Skip to content

Commit bccd5f6

Browse files
committed
Add fallback effect
1 parent 4fcfc91 commit bccd5f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

obs-shaderfilter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2673,6 +2673,8 @@ static void draw_output(struct shader_filter_data *filter)
26732673

26742674
gs_texture_t *texture = gs_texrender_get_texture(filter->output_texrender);
26752675
gs_effect_t *pass_through = filter->output_effect;
2676+
if (!pass_through)
2677+
pass_through = obs_get_base_effect(OBS_EFFECT_DEFAULT);
26762678

26772679
if (filter->param_output_image) {
26782680
gs_effect_set_texture(filter->param_output_image, texture);

0 commit comments

Comments
 (0)