From 661256e6de080df4570f927ec8c731249569fe42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lepin?= Date: Sun, 18 Apr 2021 01:15:52 +0200 Subject: [PATCH] obs-transitions: Remove scaling of track matte texture --- plugins/obs-transitions/transition-stinger.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/obs-transitions/transition-stinger.c b/plugins/obs-transitions/transition-stinger.c index eedd84a1d..0a0134a26 100644 --- a/plugins/obs-transitions/transition-stinger.c +++ b/plugins/obs-transitions/transition-stinger.c @@ -221,12 +221,8 @@ static void stinger_matte_render(void *data, gs_texture_t *a, gs_texture_t *b, // Track matte media render gs_texrender_reset(s->matte_tex); if (matte_cx > 0 && matte_cy > 0) { - float scale_x = (float)cx / matte_cx; - 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);