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.
This commit is contained in:
jp9000 2021-05-11 00:33:53 -07:00
parent 4636413334
commit 84b12afa5f

View File

@ -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; float scale_y = (float)cy / matte_cy;
if (gs_texrender_begin(s->matte_tex, cx, cy)) { if (gs_texrender_begin(s->matte_tex, cx, cy)) {
gs_matrix_push();
gs_matrix_scale3f(scale_x, scale_y, 1.0f); gs_matrix_scale3f(scale_x, scale_y, 1.0f);
gs_matrix_translate3f(width_offset, height_offset, gs_matrix_translate3f(width_offset, height_offset,
0.0f); 0.0f);
gs_clear(GS_CLEAR_COLOR, &background, 0.0f, 0); gs_clear(GS_CLEAR_COLOR, &background, 0.0f, 0);
obs_source_video_render(matte_source); obs_source_video_render(matte_source);
gs_matrix_pop();
gs_texrender_end(s->matte_tex); gs_texrender_end(s->matte_tex);
} }