From 84b12afa5f4a75638b2938945d3a0180260bab61 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 11 May 2021 00:33:53 -0700 Subject: [PATCH] obs-transitions: Remove unnecessary matrix push/pop texrender objects already push/pop the matrix internally, so doing this within a texrender rendering code block isn't necessary. --- plugins/obs-transitions/transition-stinger.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/obs-transitions/transition-stinger.c b/plugins/obs-transitions/transition-stinger.c index 50826ac05..bdf1e293b 100644 --- a/plugins/obs-transitions/transition-stinger.c +++ b/plugins/obs-transitions/transition-stinger.c @@ -224,13 +224,11 @@ static void stinger_matte_render(void *data, gs_texture_t *a, gs_texture_t *b, float scale_y = (float)cy / matte_cy; if (gs_texrender_begin(s->matte_tex, cx, cy)) { - gs_matrix_push(); gs_matrix_scale3f(scale_x, scale_y, 1.0f); gs_matrix_translate3f(width_offset, height_offset, 0.0f); gs_clear(GS_CLEAR_COLOR, &background, 0.0f, 0); obs_source_video_render(matte_source); - gs_matrix_pop(); gs_texrender_end(s->matte_tex); }