mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
obs-transitions: Remove scaling of track matte texture
This commit is contained in:
@@ -221,12 +221,8 @@ static void stinger_matte_render(void *data, gs_texture_t *a, gs_texture_t *b,
|
|||||||
// Track matte media render
|
// Track matte media render
|
||||||
gs_texrender_reset(s->matte_tex);
|
gs_texrender_reset(s->matte_tex);
|
||||||
if (matte_cx > 0 && matte_cy > 0) {
|
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)) {
|
if (gs_texrender_begin(s->matte_tex, cx, cy)) {
|
||||||
gs_matrix_push();
|
gs_matrix_push();
|
||||||
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user