diff --git a/plugins/obs-transitions/transition-stinger.c b/plugins/obs-transitions/transition-stinger.c index 13eca519c..af3ab1746 100644 --- a/plugins/obs-transitions/transition-stinger.c +++ b/plugins/obs-transitions/transition-stinger.c @@ -143,6 +143,8 @@ static void stinger_update(void *data, obs_data_t *settings) } if (s->track_matte_enabled != track_matte_was_enabled) { + obs_enter_graphics(); + gs_texrender_destroy(s->matte_tex); gs_texrender_destroy(s->stinger_tex); s->matte_tex = NULL; @@ -153,6 +155,8 @@ static void stinger_update(void *data, obs_data_t *settings) s->stinger_tex = gs_texrender_create(GS_RGBA, GS_ZS_NONE); } + + obs_leave_graphics(); } }