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:
parent
4636413334
commit
84b12afa5f
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user