Browse Source

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.
jp9000 4 years ago
parent
commit
84b12afa5f
1 changed files with 0 additions and 2 deletions
  1. 0 2
      plugins/obs-transitions/transition-stinger.c

+ 0 - 2
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);
 		}